mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 15:05:48 +01:00
🐛 Fix crash and missing translations with icon picker
This commit is contained in:
7
public/locales/en/layout/modals/icon-picker.json
Normal file
7
public/locales/en/layout/modals/icon-picker.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"iconPicker": {
|
||||||
|
"textInputPlaceholder": "Search something...",
|
||||||
|
"searchLimitationTitle": "Limited to 30 results",
|
||||||
|
"searchLimitationMessage": "Search results were limited to 30 because there were too many matches"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -33,7 +33,7 @@ export const AppearanceTab = ({
|
|||||||
label={t('appearance.icon.label')}
|
label={t('appearance.icon.label')}
|
||||||
description={t('appearance.icon.description')}
|
description={t('appearance.icon.description')}
|
||||||
variant="default"
|
variant="default"
|
||||||
data={data.files ?? []}
|
data={data?.files ?? []}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
required
|
required
|
||||||
{...form.getInputProps('appearance.iconUrl')}
|
{...form.getInputProps('appearance.iconUrl')}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ interface IconSelectorProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const IconSelector = ({ onChange, allowAppNamePropagation, form }: IconSelectorProps) => {
|
export const IconSelector = ({ onChange, allowAppNamePropagation, form }: IconSelectorProps) => {
|
||||||
const { t } = useTranslation('layout/tools');
|
const { t } = useTranslation('layout/modals/icon-picker');
|
||||||
|
|
||||||
const { data, isLoading } = useRepositoryIconsQuery<WalkxcodeRepositoryIcon>({
|
const { data, isLoading } = useRepositoryIconsQuery<WalkxcodeRepositoryIcon>({
|
||||||
url: 'https://api.github.com/repos/walkxcode/Dashboard-Icons/contents/png',
|
url: 'https://api.github.com/repos/walkxcode/Dashboard-Icons/contents/png',
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
export const dashboardNamespaces = [
|
export const dashboardNamespaces = [
|
||||||
'common',
|
'common',
|
||||||
'layout/tools',
|
|
||||||
'layout/element-selector/selector',
|
'layout/element-selector/selector',
|
||||||
'layout/modals/add-app',
|
'layout/modals/add-app',
|
||||||
'layout/modals/change-position',
|
'layout/modals/change-position',
|
||||||
|
'layout/modals/icon-picker',
|
||||||
'layout/modals/about',
|
'layout/modals/about',
|
||||||
'layout/header/actions/toggle-edit-mode',
|
'layout/header/actions/toggle-edit-mode',
|
||||||
'layout/mobile/drawer',
|
'layout/mobile/drawer',
|
||||||
|
|||||||
Reference in New Issue
Block a user