File tree 5 files changed +5
-5
lines changed
apps/web/src/components/v2Editor/customBlocks
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ function PivotTableBlock(props: Props) {
489
489
className = { clsx (
490
490
'text-sm font-sans font-medium pl-1 ring-gray-200 focus:ring-gray-400 block w-full rounded-md border-0 text-gray-800 hover:ring-1 focus:ring-1 ring-inset focus:ring-inset placeholder:text-gray-400 focus:ring-inset py-0 disabled:ring-0 h-2/3 bg-transparent focus:bg-white'
491
491
) }
492
- placeholder = "Pivot Table (click to add a title)"
492
+ placeholder = { props . isEditable ? "Pivot Table (click to add a title)" : "Pivot Table" }
493
493
value = { attrs . title }
494
494
onChange = { onChangeTitle }
495
495
disabled = { ! props . isEditable }
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ function PythonBlock(props: Props) {
511
511
className = { clsx (
512
512
'text-sm font-sans font-medium pl-1 ring-gray-200 focus:ring-gray-400 block w-full rounded-md border-0 text-gray-800 hover:ring-1 focus:ring-1 ring-inset focus:ring-inset placeholder:text-gray-400 focus:ring-inset py-0 disabled:ring-0 h-2/3 bg-transparent focus:bg-white'
513
513
) }
514
- placeholder = "Python (click to add a title)"
514
+ placeholder = { props . isEditable ? "Python (click to add a title)" : "Python" }
515
515
value = { title }
516
516
disabled = { ! props . isEditable }
517
517
onChange = { onChangeTitle }
Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ function SQLBlock(props: Props) {
822
822
className = { clsx (
823
823
'text-sm font-sans font-medium pl-1 ring-gray-200 focus:ring-gray-400 block w-full rounded-md border-0 text-gray-800 hover:ring-1 focus:ring-1 ring-inset focus:ring-inset placeholder:text-gray-400 focus:ring-inset py-0 disabled:ring-0 h-2/3 bg-transparent focus:bg-white'
824
824
) }
825
- placeholder = "SQL (click to add a title)"
825
+ placeholder = { props . isEditable ? "SQL (click to add a title)" : "SQL" }
826
826
value = { title }
827
827
onChange = { onChangeTitle }
828
828
disabled = { ! props . isEditable }
Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ function VisualizationBlock(props: Props) {
685
685
className = { clsx (
686
686
'text-sm font-sans font-medium pl-1 ring-gray-200 focus:ring-gray-400 block w-full rounded-md border-0 text-gray-800 hover:ring-1 focus:ring-1 ring-inset focus:ring-inset placeholder:text-gray-400 focus:ring-inset py-0 disabled:ring-0 h-2/3 bg-transparent focus:bg-white'
687
687
) }
688
- placeholder = "Visualization (click to add a title)"
688
+ placeholder = { props . isEditable ? "Visualization (click to add a title)" : "Visualization" }
689
689
value = { title }
690
690
onChange = { onChangeTitle }
691
691
disabled = { ! props . isEditable }
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ function WritebackBlock(props: Props) {
247
247
className = { clsx (
248
248
'text-sm font-sans font-medium pl-1 ring-gray-200 focus:ring-gray-400 block w-full rounded-md border-0 text-gray-800 hover:ring-1 focus:ring-1 ring-inset focus:ring-inset placeholder:text-gray-400 focus:ring-inset py-0 disabled:ring-0 h-2/3 bg-transparent focus:bg-white'
249
249
) }
250
- placeholder = "Writeback (click to add a title)"
250
+ placeholder = { props . isEditable ? "Writeback (click to add a title)" : "Writeback" }
251
251
value = { title }
252
252
onChange = { onChangeTitle }
253
253
disabled = { ! props . isEditable }
You can’t perform that action at this time.
0 commit comments