vocdoni/ui-scaffold

Use chakra-components action buttons

selankon opened this issue · 0 comments

Use the chakra components action buttons for the election actions instead of the actual ones:

The chakra ui action button:

https://github.com/vocdoni/ui-components/blob/main/packages/react-providers/src/election/ActionsProvider.tsx#L51
https://github.com/vocdoni/ui-components/blob/main/packages/chakra-components/src/components/Election/Actions/Pause.tsx#L7

The ui scaffold action button:

<MenuItem
as={Button}
leftIcon={<ActionIcon icon={RiPlayCircleLine} />}
onClick={resume}
justifyContent='start'
isLoading={loading.continue}
variant=''
sx={{
'& span': {
display: 'flex',
alignItems: 'center',
},
}}
>
{t('process_actions.start')}
</MenuItem>
)}

Related to:

vocdoni/ui-components#156