Merge pull request #36 from aaronpo97/style

Format and style
This commit is contained in:
Aaron Po
2023-05-08 00:07:38 -04:00
committed by GitHub
4 changed files with 18 additions and 16 deletions

View File

@@ -27,7 +27,9 @@ const ProtectedPage: NextPage = () => {
{isEvening && 'evening'} {isEvening && 'evening'}
{`, ${user?.firstName}!`} {`, ${user?.firstName}!`}
</h1> </h1>
<h2 className="text-xl font-bold lg:text-4xl">Welcome to the Biergarten App!</h2> <h2 className="text-xl font-bold lg:text-4xl">
Welcome to the Biergarten App!
</h2>
</> </>
)} )}
</div> </div>

View File

@@ -10,17 +10,17 @@ const cleanDatabase = async () => {
* schema then loops through each table and truncates it. * schema then loops through each table and truncates it.
*/ */
await prisma.$executeRaw` await prisma.$executeRaw`
DO $$ DO $$
DECLARE DECLARE
statements CURSOR FOR statements CURSOR FOR
SELECT tablename FROM pg_tables SELECT tablename FROM pg_tables
WHERE schemaname = 'public' WHERE schemaname = 'public'
AND tablename != '_prisma_migrations'; AND tablename != '_prisma_migrations';
BEGIN BEGIN
FOR statement IN statements LOOP FOR statement IN statements LOOP
EXECUTE 'TRUNCATE TABLE ' || quote_ident(statement.tablename) || ' CASCADE;'; EXECUTE 'TRUNCATE TABLE ' || quote_ident(statement.tablename) || ' CASCADE;';
END LOOP; END LOOP;
END; END;
$$ LANGUAGE plpgsql; $$ LANGUAGE plpgsql;
`; `;

View File

@@ -2,7 +2,7 @@
const myThemes = { const myThemes = {
dark: { dark: {
primary: 'hsl(227, 23%, 20%)', primary: 'hsl(227, 25%, 30%)',
secondary: 'hsl(255, 9%, 69%)', secondary: 'hsl(255, 9%, 69%)',
error: 'hsl(9, 52%, 57%)', error: 'hsl(9, 52%, 57%)',
accent: 'hsl(316, 96%, 60%)', accent: 'hsl(316, 96%, 60%)',
@@ -12,8 +12,8 @@ const myThemes = {
warning: 'hsl(50, 98%, 50%)', warning: 'hsl(50, 98%, 50%)',
'primary-content': 'hsl(0, 0%, 98%)', 'primary-content': 'hsl(0, 0%, 98%)',
'error-content': 'hsl(0, 0%, 98%)', 'error-content': 'hsl(0, 0%, 98%)',
'base-100': 'hsl(227, 20%, 11%)', 'base-100': 'hsl(227, 20%, 15%)',
'base-200': 'hsl(227, 20%, 8%)', 'base-200': 'hsl(227, 20%, 11%)',
'base-300': 'hsl(227, 20%, 5%)', 'base-300': 'hsl(227, 20%, 5%)',
}, },
light: { light: {