From b0e640fd0301eb95f9799f913c1f1b64f6b814cc Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Thu, 8 Sep 2022 11:45:59 +0300 Subject: [PATCH] remove unused component --- src/components/greeting.jsx | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/components/greeting.jsx diff --git a/src/components/greeting.jsx b/src/components/greeting.jsx deleted file mode 100644 index c660ecd99..000000000 --- a/src/components/greeting.jsx +++ /dev/null @@ -1,15 +0,0 @@ -export default function Greeting() { - const hour = new Date().getHours(); - - let day = "day"; - - if (hour < 12) { - day = "morning"; - } else if (hour < 17) { - day = "afternoon"; - } else { - day = "evening"; - } - - return
Good {day}
; -}