fix layer issue

This commit is contained in:
Anton Tranelis 2024-04-29 12:55:36 +02:00
parent 72f6546e89
commit abff99de66
3 changed files with 12 additions and 3 deletions

View File

@ -108,7 +108,7 @@ export function OverlayItemProfileSettings() {
} }
else { else {
const layer = layers.find(l => l.name == "People") const layer = layers.find(l => l.itemType.name == "user")
layer?.api?.createItem && toast.promise( layer?.api?.createItem && toast.promise(
layer?.api?.createItem(changedItem), layer?.api?.createItem(changedItem),
{ {

View File

@ -42,7 +42,6 @@ export const OverlayItemsIndexPage = ({ url, layerName, parameterField, breadcru
scroll(); scroll();
}, [addItemPopupType]) }, [addItemPopupType])
const navigate = useNavigate(); const navigate = useNavigate();
const tags = useTags(); const tags = useTags();

View File

@ -43,7 +43,17 @@ module.exports = {
require("tw-elements/dist/plugin.cjs") require("tw-elements/dist/plugin.cjs")
], ],
daisyui: { daisyui: {
themes: ["light", "dark", "cupcake", "retro", "cyberpunk", "aqua"] themes: ["light", "dark", "cupcake", "retro", "cyberpunk", "aqua",
{
docutopia: {
"primary": "#8e00ff",
"secondary": "#00bb7a",
"accent": "#006aff",
"neutral": "#231502",
"base-content": "#ffad6b",
"base-100": "#440844",
},
},]
}, },
prefix: 'tw-', prefix: 'tw-',
content: ['./src/**/*.{js,jsx,ts,tsx}'], content: ['./src/**/*.{js,jsx,ts,tsx}'],