style: auto format whole project
This commit is contained in:
@@ -4,20 +4,20 @@ interface IEditorContext {
|
||||
readOnly: boolean;
|
||||
}
|
||||
|
||||
export const EditorContext = React.createContext<IEditorContext>({ readOnly: false });
|
||||
export const EditorContext = React.createContext<IEditorContext>({
|
||||
readOnly: false,
|
||||
});
|
||||
|
||||
type EditorProviderProps = {
|
||||
children: React.ReactNode;
|
||||
value: IEditorContext;
|
||||
}
|
||||
};
|
||||
|
||||
export const EditorProvider = (props: EditorProviderProps): React.ReactElement => {
|
||||
export const EditorProvider = (
|
||||
props: EditorProviderProps
|
||||
): React.ReactElement => {
|
||||
const { children, value } = props;
|
||||
return (
|
||||
<EditorContext.Provider
|
||||
value={value}
|
||||
>
|
||||
{children}
|
||||
</EditorContext.Provider>
|
||||
<EditorContext.Provider value={value}>{children}</EditorContext.Provider>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user