Skip to content

Commit

Permalink
chore: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
NyAndoMayah committed Nov 3, 2023
1 parent 64394ec commit df50453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/ui/haLayout/HaLayout.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { AppLocationContext } from '@react-admin/ra-navigation'
import { styled, ThemeProvider } from '@mui/styles'
import { Box, useMediaQuery } from '@mui/material'
import { HaBreadCrumb } from './menu/HaBreadCrumb'
import { HaMenu } from './menu/utils/'
import { HaAppBar } from './appBar'
import { useSidebarState } from 'react-admin'
import { createContext } from 'react'
import { mainTheme } from '../../haTheme'
import HaBreadCrumb from './menu/HaBreadCrumb'

const HaLayoutStyled = styled('div')({
minHeight: '100vh',
position: 'relative',
width: '100%'
})
export const LayoutContext = createContext()

export function HaLayout({ children }) {
const [open] = useSidebarState()
Expand Down
4 changes: 3 additions & 1 deletion src/ui/haLayout/menu/HaBreadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Breadcrumb, BreadcrumbItem } from '@react-admin/ra-navigation'
import { useState } from 'react'
import dataProvider from '../../../providers/dataProvider'

export const HaBreadCrumb = () => {
const HaBreadCrumb = () => {
const [studentRef, setStudentRef] = useState('...')

const getRef = ({ record }) => {
Expand Down Expand Up @@ -61,3 +61,5 @@ export const HaBreadCrumb = () => {
</Breadcrumb>
)
}

export default HaBreadCrumb

0 comments on commit df50453

Please sign in to comment.