Translations and styling

This commit is contained in:
ajnart
2022-12-20 16:54:22 +09:00
parent c4023ab634
commit 7b147f9bb3
16 changed files with 57 additions and 47 deletions

View File

@@ -24,7 +24,7 @@ export const GenericTileMenu = ({
}
return (
<Menu withinPortal>
<Menu withinPortal withArrow position="right-start">
<Menu.Target>
<ActionIcon pos="absolute" top={4} right={4}>
<IconDots />
@@ -34,14 +34,14 @@ export const GenericTileMenu = ({
<Menu.Label>{t('sections.settings')}</Menu.Label>
{displayEdit && (
<Menu.Item icon={<IconPencil size={16} stroke={1.5} />} onClick={handleClickEdit}>
{t('actions.edit')}
{t('edit')}
</Menu.Item>
)}
<Menu.Item
icon={<IconLayoutKanban size={16} stroke={1.5} />}
onClick={handleClickChangePosition}
>
{t('actions.changePosition')}
{t('changePosition')}
</Menu.Item>
<Menu.Label>{t('sections.dangerZone')}</Menu.Label>
<Menu.Item
@@ -49,7 +49,7 @@ export const GenericTileMenu = ({
icon={<IconTrash size={16} stroke={1.5} color="red" />}
onClick={handleClickDelete}
>
{t('actions.remove')}
{t('remove')}
</Menu.Item>
</Menu.Dropdown>
</Menu>

View File

@@ -92,9 +92,9 @@ export const WidgetsEditModal = ({
<Group position="right">
<Button onClick={() => context.closeModal(id)} variant="light">
{t('common:actions.cancel')}
{t('common:cancel')}
</Button>
<Button onClick={handleSave}>{t('common:actions.save')}</Button>
<Button onClick={handleSave}>{t('common:save')}</Button>
</Group>
</Stack>
);

View File

@@ -35,9 +35,9 @@ export const WidgetsRemoveModal = ({
<Text>{t('descriptor.remove.confirm')}</Text>
<Group position="right">
<Button onClick={() => context.closeModal(id)} variant="light">
{t('common:actions.cancel')}
{t('common:cancel')}
</Button>
<Button onClick={() => handleDeletion()}>{t('common:actions.ok')}</Button>
<Button onClick={() => handleDeletion()}>{t('common:ok')}</Button>
</Group>
</Stack>
);