feat: rewrite image picker
This commit is contained in:
1 parent
464d98e124
commit
8cbe5572f5
15 files changed
+918
-267
No files matched your search
@@ -48,6 +48,7 @@ export const GeneralSettingsContent = ({ board, form }: Props) => {
|
||||
{...form.getInputProps("logoImageUrl")}
|
||||
label={t("board.field.logoImageUrl.label")}
|
||||
placeholder="/logo/logo.png"
|
||||
suggestedSearch={board.name}
|
||||
withAsterisk={false}
|
||||
/>
|
||||
</Grid.Col>
|
||||
@@ -56,6 +57,7 @@ export const GeneralSettingsContent = ({ board, form }: Props) => {
|
||||
{...form.getInputProps("faviconImageUrl")}
|
||||
label={t("board.field.faviconImageUrl.label")}
|
||||
placeholder="/logo/logo.png"
|
||||
suggestedSearch={board.name}
|
||||
withAsterisk={false}
|
||||
/>
|
||||
</Grid.Col>
|
||||
|
||||
@@ -697,7 +697,7 @@ export function CustomWidgetForm({ mode, initialValues, definitionId }: CustomWi
|
||||
<Stack gap="sm">
|
||||
<TextInput label={t("field.name")} required {...form.getInputProps("name")} />
|
||||
<Textarea label={t("field.description")} {...form.getInputProps("description")} />
|
||||
<IconPicker withAsterisk={false} {...form.getInputProps("iconUrl")} />
|
||||
<IconPicker withAsterisk={false} suggestedSearch={form.values.name} {...form.getInputProps("iconUrl")} />
|
||||
</Stack>
|
||||
</Fieldset>
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export const SearchEngineForm = (props: SearchEngineFormProps) => {
|
||||
/>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
<IconPicker {...form.getInputProps("iconUrl")} />
|
||||
<IconPicker {...form.getInputProps("iconUrl")} suggestedSearch={form.values.name} />
|
||||
|
||||
<Fieldset legend={t("search.engine.page.edit.configControl")}>
|
||||
<SegmentedControl
|
||||
|
||||
Reference in new issue
Block a user