Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Dec 18, 2024
1 parent 4fc026f commit edbb257
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion web/src/components/input/IconInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ export const IconInput = ({
value,
onChange,
errorMessage,
label,
}: {
value: string;
onChange: (_value: string) => void;
errorMessage?: string;
label?: string;
}) => {
const [search, setSearch] = useState<string>(value);
const [category, setCategory] = useState<string | null>();
Expand Down Expand Up @@ -102,7 +104,7 @@ export const IconInput = ({

return (
<FieldSelect
label="Icon"
label={label == '' ? undefined : 'Icon'}
// name="icon"
value={value}
onChange={(value) => {
Expand Down
8 changes: 6 additions & 2 deletions web/src/routes/settings/fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ const RouteComponent = () => {
columnHelper.accessor('definition_id', {
header: 'Definition ID',
}),
columnHelper.accessor('name', {
header: 'Name',
}),
],
data,
getCoreRowModel: getCoreRowModel(),
Expand Down Expand Up @@ -493,6 +496,7 @@ const RouteComponent = () => {
})
.with({ type: 'icon' }, () => (
<IconInput
label={''}
value={
cell.getValue()[
'icon'
Expand All @@ -508,7 +512,7 @@ const RouteComponent = () => {
/>
))
.with(
{ type: 'definition_id' },
{ type: 'name' },
({ type }) => (
// <form.Field
// name="definition_id"
Expand All @@ -524,7 +528,7 @@ const RouteComponent = () => {
// >
// {(field) => (
<BaseInput
name="definition_id"
name="name"
value={
cell.getValue()
// field.state.value
Expand Down

0 comments on commit edbb257

Please sign in to comment.