Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanHjelsethStorstad committed Jan 6, 2024
1 parent 51edc91 commit 1c55648
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/app/components/NavBar/MobileNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function MobileNavBar({ session } : PropTypes) {
</div>
<BurgerMenu isLoggedIn={isLoggedIn} applicationPeriod={applicationPeriod}/>
<div className={styles.editMode}>
{
isAdmin && <EditModeSwitch />
}
{
isAdmin && <EditModeSwitch />
}
</div>
</nav>
)
Expand Down
4 changes: 2 additions & 2 deletions src/app/images/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export default async function Images() {
take: 1
},
_count: {
select: {
images: true
select: {
images: true
}
}
},
Expand Down
10 changes: 5 additions & 5 deletions src/context/EditMode.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use client'

import { useState, createContext } from "react"
import React from 'react'
import { useState, createContext } from 'react'

type PropTypes = {
children: React.ReactNode,
}

export const EditModeContext = createContext<{
editMode: boolean,
setEditMode: (editMode: boolean) => void,
} | null>(null)
setEditMode:(editMode: boolean) => void,
} | null>(null)

export default function EditModeProvider({ children } : PropTypes) {
const [editMode, setEditMode] = useState(false)
Expand All @@ -22,4 +22,4 @@ export default function EditModeProvider({ children } : PropTypes) {
{children}
</EditModeContext.Provider>
)
}
}

0 comments on commit 1c55648

Please sign in to comment.