2
0

feat(editor): Add unlock/lock sidebar

This commit is contained in:
Baptiste Arnaud
2022-01-29 11:22:22 +01:00
parent 02bd2b94ba
commit 1c5bd06657
18 changed files with 249 additions and 170 deletions

View File

@ -94,6 +94,7 @@ export const ChoiceItemNode = ({
>
{(ref, isOpened) => (
<Flex
ref={ref}
align="center"
pos="relative"
onMouseEnter={handleMouseEnter}
@ -109,7 +110,6 @@ export const ChoiceItemNode = ({
borderColor={isOpened ? 'blue.400' : 'gray.300'}
>
<Editable
ref={ref}
defaultValue={item.content ?? 'Click to edit'}
flex="1"
startWithEditView={!isDefined(item.content)}