From 83b1c313688f52163ff3c97612ddf2f7c4bc3b34 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 7 Jan 2024 14:52:23 -0600 Subject: [PATCH] Tweak initial setup empty state --- src/photo/PhotosEmptyState.tsx | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/src/photo/PhotosEmptyState.tsx b/src/photo/PhotosEmptyState.tsx index 2498c604..edeebbbf 100644 --- a/src/photo/PhotosEmptyState.tsx +++ b/src/photo/PhotosEmptyState.tsx @@ -7,10 +7,18 @@ import Link from 'next/link'; import { HiOutlinePhotograph } from 'react-icons/hi'; export default function PhotosEmptyState() { + const renderLink = (href: string) => + + {href} + ; + return ( + {!IS_SITE_READY ? - :
-
+ :
+
1. Visit {' '} - - /admin - + {renderLink('/admin/photos')} {' '} to add your first photo
@@ -40,15 +43,7 @@ export default function PhotosEmptyState() { 2. Change the name of this blog and other configuration by editing environment variables referenced in {' '} - - src/site/config.ts - + {renderLink('/admin/configuration')}
} }