From aca1fbd0464ca758306b74836402f50b27cd9815 Mon Sep 17 00:00:00 2001 From: juhanikat Date: Thu, 28 Aug 2025 15:03:08 +0300 Subject: [PATCH] add info message to Museum -> Localities tab if there are no added localities --- frontend/src/components/Museum/Tabs/LocalityTab.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Museum/Tabs/LocalityTab.tsx b/frontend/src/components/Museum/Tabs/LocalityTab.tsx index 362bc798..bbf4d4a9 100644 --- a/frontend/src/components/Museum/Tabs/LocalityTab.tsx +++ b/frontend/src/components/Museum/Tabs/LocalityTab.tsx @@ -23,12 +23,16 @@ export const LocalityTab = ({ isNew }: { isNew: boolean }) => { header: 'Min Age', }, ] - if (isNew) + + if (isNew) { return (
Link localities to this museum after finalizing it by editing a locality and navigating to the museum tab there.
) + } else if (data.localities.length === 0) { + return
Link localities to this museum by editing a locality and navigating to the museum tab there.
+ } return }