Skip to content

Commit

Permalink
Remove bg-blue from bg
Browse files Browse the repository at this point in the history
  • Loading branch information
apuntovanini committed Jun 4, 2024
1 parent dbf9abf commit b78e18b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/src/app/layout.client.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
"use client";

import { useParams } from 'next/navigation';
import type { ReactNode } from 'react';
import { useParams } from "next/navigation";
import type { ReactNode } from "react";

export function Body({
children,
Expand All @@ -10,12 +10,10 @@ export function Body({
}): React.ReactElement {
const mode = useMode();

return <div className={"bg-blue-100/60 w-full"}>{children}</div>;
return <div className={"w-full"}>{children}</div>;
}


export function useMode(): string | undefined {
const { slug } = useParams();
return Array.isArray(slug) && slug.length > 0 ? slug[0] : undefined;
}

0 comments on commit b78e18b

Please sign in to comment.