From a176f4b15dfed4aca2a6fa84b4ee730f227a7de0 Mon Sep 17 00:00:00 2001 From: Kevin Hou Date: Sun, 24 Mar 2024 22:34:08 -0700 Subject: [PATCH 1/4] Add padding on mobile --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 826881dbd..241ad8df9 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -85,7 +85,7 @@ const HomePage = async () => { -
+
homepage photography image tiles Date: Sun, 24 Mar 2024 22:35:38 -0700 Subject: [PATCH 2/4] More mobile changes --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 241ad8df9..7ffd34bf4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -171,7 +171,7 @@ const HomePage = async () => { - +

From bb52621529256720df8c7b32dac68f0d893bd1c2 Mon Sep 17 00:00:00 2001 From: Kevin Hou Date: Mon, 25 Mar 2024 11:11:36 -0700 Subject: [PATCH 3/4] Add docstrings --- src/utils/enum.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/utils/enum.ts b/src/utils/enum.ts index 395a6ad88..8e6a24c09 100644 --- a/src/utils/enum.ts +++ b/src/utils/enum.ts @@ -1,3 +1,10 @@ +/** + * Converts an enum value to its corresponding string key. + * + * @param {E} enumValue - the enum value to convert + * @param {Record} enumType - the enum type to search for the value in + * @return {string | undefined} the string key corresponding to the enum value, or undefined if not found + */ export function enumToString( enumValue: E, enumType: Record, @@ -9,6 +16,13 @@ export function enumToString( return key; } +/** + * Finds the key in the enumType and returns the corresponding value. + * + * @param {unknown} key - The key to search for in the enumType. + * @param {Record} enumType - The enumType to search within. + * @return {E | undefined} The corresponding value of the key if found, otherwise undefined. + */ export function stringToEnum( key: unknown, enumType: Record, From 2646b87e64b8c5f4df19c05a9ac8288aa2883c3a Mon Sep 17 00:00:00 2001 From: Kevin Hou Date: Mon, 25 Mar 2024 11:20:26 -0700 Subject: [PATCH 4/4] Bad commit --- src/utils/enum.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/enum.ts b/src/utils/enum.ts index 8e6a24c09..27e77f018 100644 --- a/src/utils/enum.ts +++ b/src/utils/enum.ts @@ -10,6 +10,7 @@ export function enumToString( enumType: Record, ): string | undefined { const keys = Object.keys(enumType); + console.log(`keys: ${keys}`); const key = keys.find( (k) => enumType[k as keyof typeof enumType] === enumValue, );