Skip to content

Commit

Permalink
Merge pull request #4 from giuliohome-org/main
Browse files Browse the repository at this point in the history
Fix Github Actions Linting error
  • Loading branch information
oliverlabs authored Sep 5, 2023
2 parents c664e5a + 9dadb76 commit fbbe970
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/reporting/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { ProtectedPage } from "@/features/auth/protected-page";
import { MainMenu } from "@/features/menu/menu";
import { RptContext } from "./rpt-context";
import { AI_NAME } from "@/features/theme/customise";

export const metadata = {
title: AI_NAME,
description: AI_NAME,
};

export default async function RootLayout({
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<ProtectedPage>
<MainMenu />
<RptContext/>
<div className="flex-1">{children}</div>
</ProtectedPage>
);
Expand Down
12 changes: 12 additions & 0 deletions src/app/reporting/rpt-context.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use client'

import { useState } from 'react';

import { MainMenu } from "@/features/menu/menu";

export const RptContext = () => {
const [isOpen, setIsOpen] = useState(false);
return (
<MainMenu isOpen={isOpen} setIsOpen={setIsOpen} />
)
}

0 comments on commit fbbe970

Please sign in to comment.