Merge branch 'dev' into dnd

This commit is contained in:
Thomas Camlong
2022-05-23 11:24:31 +02:00
committed by GitHub
17 changed files with 1768 additions and 1721 deletions

View File

@@ -14,6 +14,7 @@ import {
import { useForm } from '@mantine/form';
import { useState } from 'react';
import { Apps } from 'tabler-icons-react';
import { v4 as uuidv4 } from 'uuid';
import { useConfig } from '../../tools/state';
import { ServiceTypeList } from '../../tools/types';
@@ -67,7 +68,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
const form = useForm({
initialValues: {
id: props.id ?? crypto.randomUUID(),
id: props.id ?? uuidv4(),
type: props.type ?? 'Other',
name: props.name ?? '',
icon: props.icon ?? '/favicon.svg',