diff --git a/src/hooks/data-fetching/brewery-likes/useCheckIfUserLikesBreweryPost.ts b/src/hooks/data-fetching/brewery-likes/useCheckIfUserLikesBreweryPost.ts index 910ca43..0d24194 100644 --- a/src/hooks/data-fetching/brewery-likes/useCheckIfUserLikesBreweryPost.ts +++ b/src/hooks/data-fetching/brewery-likes/useCheckIfUserLikesBreweryPost.ts @@ -27,7 +27,7 @@ const useCheckIfUserLikesBreweryPost = (breweryPostId: string) => { const response = await fetch(`/api/breweries/${breweryPostId}/like/is-liked`); const json = await response.json(); - + const parsed = APIResponseValidationSchema.safeParse(json); if (!parsed.success) { throw new Error('Invalid API response.'); diff --git a/src/pages/user/current.tsx b/src/pages/user/current.tsx index 83af0ab..c5d739f 100644 --- a/src/pages/user/current.tsx +++ b/src/pages/user/current.tsx @@ -27,7 +27,9 @@ const ProtectedPage: NextPage = () => { {isEvening && 'evening'} {`, ${user?.firstName}!`} -

Welcome to the Biergarten App!

+

+ Welcome to the Biergarten App! +

)} diff --git a/src/prisma/seed/clean/cleanDatabase.ts b/src/prisma/seed/clean/cleanDatabase.ts index 9b23d4b..21b4a85 100644 --- a/src/prisma/seed/clean/cleanDatabase.ts +++ b/src/prisma/seed/clean/cleanDatabase.ts @@ -10,17 +10,17 @@ const cleanDatabase = async () => { * schema then loops through each table and truncates it. */ await prisma.$executeRaw` - DO $$ - DECLARE - statements CURSOR FOR - SELECT tablename FROM pg_tables - WHERE schemaname = 'public' - AND tablename != '_prisma_migrations'; - BEGIN - FOR statement IN statements LOOP - EXECUTE 'TRUNCATE TABLE ' || quote_ident(statement.tablename) || ' CASCADE;'; - END LOOP; - END; + DO $$ + DECLARE + statements CURSOR FOR + SELECT tablename FROM pg_tables + WHERE schemaname = 'public' + AND tablename != '_prisma_migrations'; + BEGIN + FOR statement IN statements LOOP + EXECUTE 'TRUNCATE TABLE ' || quote_ident(statement.tablename) || ' CASCADE;'; + END LOOP; + END; $$ LANGUAGE plpgsql; `; diff --git a/tailwind.config.js b/tailwind.config.js index 11b30c5..d2b1d0e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,7 @@ const myThemes = { dark: { - primary: 'hsl(227, 23%, 20%)', + primary: 'hsl(227, 25%, 30%)', secondary: 'hsl(255, 9%, 69%)', error: 'hsl(9, 52%, 57%)', accent: 'hsl(316, 96%, 60%)', @@ -12,8 +12,8 @@ const myThemes = { warning: 'hsl(50, 98%, 50%)', 'primary-content': 'hsl(0, 0%, 98%)', 'error-content': 'hsl(0, 0%, 98%)', - 'base-100': 'hsl(227, 20%, 11%)', - 'base-200': 'hsl(227, 20%, 8%)', + 'base-100': 'hsl(227, 20%, 15%)', + 'base-200': 'hsl(227, 20%, 11%)', 'base-300': 'hsl(227, 20%, 5%)', }, light: {