Remove React contexts
This commit is contained in:
parent
1a39108e38
commit
d1c602dd59
2 changed files with 0 additions and 27 deletions
|
|
@ -1,10 +0,0 @@
|
|||
import { createContext } from 'react'
|
||||
|
||||
const AppContext = createContext({
|
||||
authenticated: false,
|
||||
editable: false,
|
||||
setAuthenticated: (auth: boolean) => {},
|
||||
setEditable: (editable: boolean) => {}
|
||||
})
|
||||
|
||||
export default AppContext
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import { createContext } from 'react'
|
||||
import { TeamElement } from '~utils/enums'
|
||||
|
||||
const PartyContext = createContext({
|
||||
id: '',
|
||||
setId: (id: string) => {},
|
||||
slug: '',
|
||||
setSlug: (slug: string) => {},
|
||||
element: TeamElement.Any,
|
||||
setElement: (element: TeamElement) => {},
|
||||
editable: false,
|
||||
setEditable: (editable: boolean) => {},
|
||||
hasExtra: false,
|
||||
setHasExtra: (hasExtra: boolean) => {}
|
||||
})
|
||||
|
||||
export default PartyContext
|
||||
Loading…
Reference in a new issue