File tree Expand file tree Collapse file tree 3 files changed +38
-43
lines changed
Expand file tree Collapse file tree 3 files changed +38
-43
lines changed Original file line number Diff line number Diff line change @@ -40,29 +40,26 @@ export function RichTextColor() {
4040 }
4141
4242 return (
43- < div className = "richtext-flex richtext-h-[32px] richtext-items-center" >
44-
45- < ColorPicker
46- colors = { colors }
43+ < ColorPicker
44+ colors = { colors }
45+ disabled = { disabled }
46+ onChange = { onChange }
47+ value = { selectedColor }
48+ >
49+ < ActionButton
4750 disabled = { disabled }
48- onChange = { onChange }
49- value = { selectedColor }
51+ tooltip = { tooltip }
52+ // tooltipOptions={tooltipOptions }
5053 >
51- < ActionButton
52- disabled = { disabled }
53- tooltip = { tooltip }
54- // tooltipOptions={tooltipOptions}
55- >
56- < span className = "richtext-flex richtext-items-center richtext-justify-center richtext-gap-[4px] richtext-text-sm" >
57- < IconColorFill fill = { dataState } />
54+ < span className = "richtext-flex richtext-items-center richtext-justify-center richtext-gap-[4px] richtext-text-sm" >
55+ < IconColorFill fill = { dataState } />
5856
59- < IconComponent className = "!richtext-h-3 !richtext-w-3 richtext-text-zinc-500"
60- name = "MenuDown"
61- />
57+ < IconComponent className = "!richtext-h-3 !richtext-w-3 richtext-text-zinc-500"
58+ name = "MenuDown"
59+ />
6260
63- </ span >
64- </ ActionButton >
65- </ ColorPicker >
66- </ div >
61+ </ span >
62+ </ ActionButton >
63+ </ ColorPicker >
6764 ) ;
6865}
Original file line number Diff line number Diff line change @@ -37,30 +37,28 @@ export function RichTextHighlight() {
3737 }
3838
3939 return (
40- < div className = "richtext-flex richtext-h-[32px] richtext-items-center" >
41- < ColorPicker
42- colors = { colors }
40+ < ColorPicker
41+ colors = { colors }
42+ disabled = { editorDisabled }
43+ highlight
44+ onChange = { onChange }
45+ value = { selectedColor }
46+ >
47+ < ActionButton
4348 disabled = { editorDisabled }
44- highlight
45- onChange = { onChange }
46- value = { selectedColor }
49+ tooltip = { tooltip }
50+ // tooltipOptions={tooltipOptions }
51+ shortcutKeys = { shortcutKeys }
4752 >
48- < ActionButton
49- disabled = { editorDisabled }
50- tooltip = { tooltip }
51- // tooltipOptions={tooltipOptions}
52- shortcutKeys = { shortcutKeys }
53- >
54- < span className = "richtext-flex richtext-items-center richtext-justify-center richtext-gap-[4px] richtext-text-sm" >
55- < IconHighlightFill fill = { selectedColor } />
53+ < span className = "richtext-flex richtext-items-center richtext-justify-center richtext-gap-[4px] richtext-text-sm" >
54+ < IconHighlightFill fill = { selectedColor } />
5655
57- < IconComponent className = "!richtext-h-3 !richtext-w-3 richtext-text-zinc-500"
58- name = "MenuDown"
59- />
60- </ span >
56+ < IconComponent className = "!richtext-h-3 !richtext-w-3 richtext-text-zinc-500"
57+ name = "MenuDown"
58+ />
59+ </ span >
6160
62- </ ActionButton >
63- </ ColorPicker >
64- </ div >
61+ </ ActionButton >
62+ </ ColorPicker >
6563 ) ;
6664}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export function RichTextImportWord() {
129129 }
130130
131131 return (
132- < div >
132+ < >
133133 < ActionButton action = { triggerFileInput }
134134 disabled = { editorDisabled }
135135 icon = { icon }
@@ -147,6 +147,6 @@ export function RichTextImportWord() {
147147 display : 'none' ,
148148 } }
149149 />
150- </ div >
150+ </ >
151151 ) ;
152152}
You can’t perform that action at this time.
0 commit comments