Skip to content

Commit 4a6b101

Browse files
committed
Cleanup
1 parent 2170b16 commit 4a6b101

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/components/Layout/Layout.component.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ const Layout = ({ children, title }: ILayoutProps) => {
5959
<div className="flex flex-col min-h-screen w-full mx-auto">
6060
<Header title={title} />
6161
{title === 'Hjem' ? (
62-
<>
63-
<main className="flex-1">
64-
{children}
65-
</main>
66-
</>
62+
<main className="flex-1">{children}</main>
6763
) : (
6864
<div className="container mx-auto px-6 flex-1">
6965
<PageTitle title={title} />

src/components/Layout/PageTitle.component.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ interface IPageTitleProps {
55
/**
66
* Renders page title for each page.
77
* @function PageTitle
8-
* @param {boolean} marginLeft - Adds extra margin left if true
98
* @param {string} title - Title for the page. Is set in <title>{title}</title>
109
* @returns {JSX.Element} - Rendered component
1110
*/

0 commit comments

Comments
 (0)