fix typo
This commit is contained in:
@@ -14,8 +14,8 @@ export default function Editor({
|
|||||||
setActualContent,
|
setActualContent,
|
||||||
contentType,
|
contentType,
|
||||||
}) {
|
}) {
|
||||||
const [language, setLanguage] = useState(isMobile);
|
const [language, setLanguage] = useState('plain');
|
||||||
const [readOnly, setReadOnly] = useState(true);
|
const [readOnly, setReadOnly] = useState(isMobile);
|
||||||
|
|
||||||
const [theme, setTheme] = usePreference(
|
const [theme, setTheme] = usePreference(
|
||||||
'theme',
|
'theme',
|
||||||
@@ -64,6 +64,7 @@ export default function Editor({
|
|||||||
language={language}
|
language={language}
|
||||||
fontSize={fontSize}
|
fontSize={fontSize}
|
||||||
readOnly={readOnly}
|
readOnly={readOnly}
|
||||||
|
setReadOnly={setReadOnly}
|
||||||
/>
|
/>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user