Refactor input arch (#1982)

This commit is contained in:
Charles Bochet
2023-10-12 17:41:50 +02:00
committed by GitHub
parent 09fd5b6454
commit 6b990c8501
47 changed files with 312 additions and 523 deletions

View File

@ -5,8 +5,8 @@ import styled from '@emotion/styled';
import { MatchColumnSelect } from '@/spreadsheet-import/components/MatchColumnSelect';
import { Data, Fields } from '@/spreadsheet-import/types';
import { Checkbox, CheckboxVariant } from '@/ui/input/components/Checkbox';
import { TextInput } from '@/ui/input/components/TextInput';
import { Toggle } from '@/ui/input/components/Toggle';
import { TextInputSettings } from '@/ui/input/text/components/TextInputSettings';
import { AppTooltip } from '@/ui/tooltip/AppTooltip';
import { Meta } from '../types';
@ -146,7 +146,7 @@ export const generateColumns = <T extends string>(
}
default:
component = (
<TextInputSettings
<TextInput
value={row[columnKey] as string}
onChange={(value: string) => {
onRowChange({ ...row, [columnKey]: value });