From abff99de66e67ae940017bd529fc8db5b154f138 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 29 Apr 2024 12:55:36 +0200 Subject: [PATCH] fix layer issue --- .../Profile/OverlayItemProfileSettings.tsx | 2 +- src/Components/Templates/OverlayItemsIndexPage.tsx | 1 - tailwind.config.js | 12 +++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Components/Profile/OverlayItemProfileSettings.tsx b/src/Components/Profile/OverlayItemProfileSettings.tsx index 16947abc..f4a99eba 100644 --- a/src/Components/Profile/OverlayItemProfileSettings.tsx +++ b/src/Components/Profile/OverlayItemProfileSettings.tsx @@ -108,7 +108,7 @@ export function OverlayItemProfileSettings() { } 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(changedItem), { diff --git a/src/Components/Templates/OverlayItemsIndexPage.tsx b/src/Components/Templates/OverlayItemsIndexPage.tsx index 82f2c829..031861fa 100644 --- a/src/Components/Templates/OverlayItemsIndexPage.tsx +++ b/src/Components/Templates/OverlayItemsIndexPage.tsx @@ -42,7 +42,6 @@ export const OverlayItemsIndexPage = ({ url, layerName, parameterField, breadcru scroll(); }, [addItemPopupType]) - const navigate = useNavigate(); const tags = useTags(); diff --git a/tailwind.config.js b/tailwind.config.js index ba085f15..bb9428d9 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -43,7 +43,17 @@ module.exports = { require("tw-elements/dist/plugin.cjs") ], 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-', content: ['./src/**/*.{js,jsx,ts,tsx}'],