mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
✨ Add propagation for service name to service icon
This commit is contained in:
@@ -7,9 +7,15 @@ import { IconSelector } from './IconSelector/IconSelector';
|
||||
|
||||
interface AppearanceTabProps {
|
||||
form: UseFormReturnType<ServiceType, (values: ServiceType) => ServiceType>;
|
||||
disallowServiceNameProgagation: () => void;
|
||||
allowServiceNamePropagation: boolean;
|
||||
}
|
||||
|
||||
export const AppearanceTab = ({ form }: AppearanceTabProps) => {
|
||||
export const AppearanceTab = ({
|
||||
form,
|
||||
disallowServiceNameProgagation,
|
||||
allowServiceNamePropagation,
|
||||
}: AppearanceTabProps) => {
|
||||
const { t } = useTranslation('');
|
||||
const { classes } = useStyles();
|
||||
|
||||
@@ -28,13 +34,16 @@ export const AppearanceTab = ({ form }: AppearanceTabProps) => {
|
||||
{...form.getInputProps('appearance.iconUrl')}
|
||||
/>
|
||||
<IconSelector
|
||||
onChange={(item) =>
|
||||
onChange={(item) => {
|
||||
form.setValues({
|
||||
appearance: {
|
||||
iconUrl: item.url,
|
||||
},
|
||||
})
|
||||
}
|
||||
});
|
||||
disallowServiceNameProgagation();
|
||||
}}
|
||||
allowServiceNamePropagation={allowServiceNamePropagation}
|
||||
form={form}
|
||||
/>
|
||||
</Flex>
|
||||
</Tabs.Panel>
|
||||
|
||||
Reference in New Issue
Block a user