diff --git a/apps/web/components/Celebration.tsx b/apps/web/components/Celebration.tsx index dd4dfb4b3..d42cc07f2 100644 --- a/apps/web/components/Celebration.tsx +++ b/apps/web/components/Celebration.tsx @@ -4,7 +4,7 @@ import Image from "next/image"; import { getCelebrationImage } from "@/utils/celebration"; import { Button } from "@/components/Button"; -export function Celebration(props: { message: string }) { +export function Celebration(props: { type: string }) { const [active, setActive] = useState(false); useEffect(() => { @@ -14,47 +14,59 @@ export function Celebration(props: { message: string }) { return ( <>
- Congrats! {props.message} -
-
- + {props.type === "inbox" + ? "You made it to Inbox Zero!" + : props.type === "draft" + ? "You don't have any saved drafts." + : props.type === "sent" + ? "You haven't sent any emails yet." + : props.type === "archive" + ? "No emails have been archived." + : "All emails handled!"}
+ {props.type === "inbox" && ( + <> +
+ +
-
- -
+
+ +
-
- Congrats! -
+
+ Congrats! +
+ + )} ); } diff --git a/apps/web/components/email-list/EmailList.tsx b/apps/web/components/email-list/EmailList.tsx index b5a9916eb..7bef3e7bd 100644 --- a/apps/web/components/email-list/EmailList.tsx +++ b/apps/web/components/email-list/EmailList.tsx @@ -131,13 +131,7 @@ export function List(props: { refetch={refetch} /> ) : ( - + )} );