Rename MyHomePage to Homarr

This commit is contained in:
Aj - Thomas
2022-05-12 14:24:15 +02:00
parent 5dee33284d
commit e3af7629aa
7 changed files with 26 additions and 17 deletions

View File

@@ -73,7 +73,11 @@ export default function AddItemShelfItem(props: any) {
}
function MatchIcon(name: string, form: any) {
fetch(`https://cdn.jsdelivr.net/gh/walkxhub/dashboard-icons/png/${name.replace(/\s+/g, '-').toLowerCase()}.png`)
fetch(
`https://cdn.jsdelivr.net/gh/walkxhub/dashboard-icons/png/${name
.replace(/\s+/g, '-')
.toLowerCase()}.png`
)
.then((res) => {
if (res.status === 200) {
form.setFieldValue('icon', res.url);
@@ -85,7 +89,7 @@ function MatchIcon(name: string, form: any) {
return false;
}
export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } & any) {
const { setOpened } = props;
const { addService, config, setConfig } = useConfig();