From d80020100551dabe41de6457d9731ed61ef91afe Mon Sep 17 00:00:00 2001 From: Ansen Bey Date: Wed, 4 Dec 2024 22:19:38 +0530 Subject: [PATCH] feat: Improve 404 page navigation (#252) --- .changeset/weak-numbers-stare.md | 5 ++++ src/components/common/Empty/Empty.tsx | 8 ++++-- src/main.tsx | 37 +++++++++++++++++++++------ 3 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 .changeset/weak-numbers-stare.md diff --git a/.changeset/weak-numbers-stare.md b/.changeset/weak-numbers-stare.md new file mode 100644 index 0000000..43f4948 --- /dev/null +++ b/.changeset/weak-numbers-stare.md @@ -0,0 +1,5 @@ +--- +"namesake": minor +--- + +Add navigation links and logo to the 404 page diff --git a/src/components/common/Empty/Empty.tsx b/src/components/common/Empty/Empty.tsx index f289e35..625ca7e 100644 --- a/src/components/common/Empty/Empty.tsx +++ b/src/components/common/Empty/Empty.tsx @@ -19,6 +19,7 @@ export function Empty({ title, subtitle, className, + children, button, link, }: EmptyProps) { @@ -32,8 +33,11 @@ export function Empty({

{title}

{subtitle &&

{subtitle}

} - {button &&