From 5cfe39b00c6095b1f87dfe780a0a5114761f0801 Mon Sep 17 00:00:00 2001 From: neko Date: Tue, 20 Sep 2022 13:25:03 +0300 Subject: [PATCH] final ref hw6 / fix id --- src/s2-homeworks/hw06/HW6.tsx | 3 ++- .../hw06/common/c4-SuperEditableSpan/SuperEditableSpan.tsx | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/s2-homeworks/hw06/HW6.tsx b/src/s2-homeworks/hw06/HW6.tsx index 8d7344e..2b9f51b 100644 --- a/src/s2-homeworks/hw06/HW6.tsx +++ b/src/s2-homeworks/hw06/HW6.tsx @@ -34,7 +34,8 @@ const HW6 = () => { value={value} onChangeText={setValue} spanProps={{ - defaultText: 'enter text...' + id: 'hw6-editable-span', + defaultText: 'enter text...', }} /> diff --git a/src/s2-homeworks/hw06/common/c4-SuperEditableSpan/SuperEditableSpan.tsx b/src/s2-homeworks/hw06/common/c4-SuperEditableSpan/SuperEditableSpan.tsx index f0ecd1e..fe3c532 100644 --- a/src/s2-homeworks/hw06/common/c4-SuperEditableSpan/SuperEditableSpan.tsx +++ b/src/s2-homeworks/hw06/common/c4-SuperEditableSpan/SuperEditableSpan.tsx @@ -28,7 +28,6 @@ type SuperEditableSpanType = Omit & { const SuperEditableSpan: React.FC = ( { - id, autoFocus, onBlur, onEnter, @@ -66,7 +65,6 @@ const SuperEditableSpan: React.FC = ( <> {editMode ? ( = ( alt={'edit'} />