mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
Fix typescript doing something weird again
This commit is contained in:
parent
9732f938b5
commit
8e5221814d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { EditingContext, EditingMode } from "./base"
|
||||||
/**
|
/**
|
||||||
* Component which stores the current editing mode (by default {@link EditingMode.VIEW}) using {@link useState} and provides it to its children through an {@link EditingContext}.
|
* Component which stores the current editing mode (by default {@link EditingMode.VIEW}) using {@link useState} and provides it to its children through an {@link EditingContext}.
|
||||||
*/
|
*/
|
||||||
export const EditingModeProvider = ({ children }: { children: ReactNode }) => {
|
export const EditingContextProvider = ({ children }: { children: ReactNode }): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
<EditingContext.Provider value={useState<EditingMode>(EditingMode.VIEW)}>
|
<EditingContext.Provider value={useState<EditingMode>(EditingMode.VIEW)}>
|
||||||
{children}
|
{children}
|
||||||
|
|
Loading…
Reference in a new issue