Adding some translations

This commit is contained in:
ajnart
2023-01-02 01:11:25 +09:00
parent f23c317ef1
commit be979dc534
10 changed files with 56 additions and 74 deletions

View File

@@ -126,41 +126,3 @@ export const WidgetsEditModal = ({
</Stack>
);
};
// <Stack>
// {items.map(([key, value]) => (
// <>
// {typeof value === 'boolean' ? (
// <Switch
// label={t(`descriptor.settings.${key}.label`)}
// checked={value}
// onChange={(ev) => handleChange(key, ev.currentTarget.checked)}
// />
// ) : null}
// {typeof value === 'string' ? (
// <TextInput
// label={t(`descriptor.settings.${key}.label`)}
// value={value}
// onChange={(ev) => handleChange(key, ev.currentTarget.value)}
// />
// ) : null}
// {typeof value === 'object' && Array.isArray(value) ? (
// <MultiSelect
// data={getMutliselectData(key)}
// label={t(`descriptor.settings.${key}.label`)}
// value={value}
// onChange={(v) => handleChange(key, v)}
// />
// ) : null}
// </>
// ))}
// <Group position="right">
// <Button onClick={() => context.closeModal(id)} variant="light">
// {t('common:cancel')}
// </Button>
// <Button onClick={handleSave}>{t('common:save')}</Button>
// </Group>
// </Stack>
// );
// };