From 6ed098e46369f35426e46f55af1eb58043274c66 Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Mon, 13 Dec 2021 21:22:54 -0600 Subject: [PATCH] Updated home link. Updated version info. --- contexts/CalenderContext.tsx | 7 ++----- package.json | 2 +- theme/layout/Header.tsx | 2 +- theme/layout/navItems.ts | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/contexts/CalenderContext.tsx b/contexts/CalenderContext.tsx index 8bc569c..c16b2a3 100644 --- a/contexts/CalenderContext.tsx +++ b/contexts/CalenderContext.tsx @@ -42,10 +42,9 @@ interface Calendar { // Will replace all states and be used in redis as a form of memoization. interface MonthInfo { date: Date; - format: string; layout: Calendar; - startDay: string; - endDay: string; + startWeekday: string; + endWeekday: string; days: number; } @@ -108,8 +107,6 @@ const CalenderContextProvider = ({ ); // Add start of selected month and start of next month, including day of week and numerical day. - const [calendar, setCalendar] = useState({} as Calendar); - // TODO: Remove this state and all referenced to it once the date alignment algorithm is complete. const [daysOfMonth, setDaysOfMonth] = useState<[number]>([1]); diff --git a/package.json b/package.json index 25276bd..aa0a320 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "lucid-creations-media-potty-chart", "homepage": "https://lucidcreations.media/introducing-code-name-potty-chart/", - "version": "v0.0.5.0-pre-alpha", + "version": "v0.0.5.1-pre-alpha", "author": { "name": "Lucid Creations Media", "url": "https://lucidcreations.media", diff --git a/theme/layout/Header.tsx b/theme/layout/Header.tsx index f68bca6..2d5007f 100644 --- a/theme/layout/Header.tsx +++ b/theme/layout/Header.tsx @@ -13,7 +13,7 @@ import MobileNav from "./MobileNav"; const Header = (): JSX.Element => { const appName = "LCM Potty Chart"; - const appVersion = "v0.0.5.0-pre-alpha"; + const appVersion = "v0.0.5.1-pre-alpha"; // Add transparency while not at the top of the page. const [transparentNavbar, setTransparentNavbar] = useState(false); diff --git a/theme/layout/navItems.ts b/theme/layout/navItems.ts index b237436..8fea660 100644 --- a/theme/layout/navItems.ts +++ b/theme/layout/navItems.ts @@ -1,6 +1,6 @@ export type NavItem = [string, string]; export type NavItems = NavItem[]; -const navItems: NavItems = [["Home", "#top"]]; +const navItems: NavItems = [["Home", "/"]]; export default navItems;