@@ -10,8 +10,8 @@ import DraggableItem from "./DraggableItem";
10
10
import AceEditor from "react-ace" ;
11
11
import "ace-builds/src-noconflict/mode-css" ;
12
12
import "ace-builds/src-noconflict/ext-language_tools" ;
13
- import fieldStyle from "./fieldStyle.ts" ;
14
13
import { buttonIconClasses , buttonStyle , fieldStyle , outlineButtonStyle } from "./styles.ts" ;
14
+ import ButtonGroup from "./ButtonGroup.tsx" ;
15
15
16
16
const { emailHtml } = yekaEmailHtmlLib . dev . yekta . yeka . email . html ;
17
17
@@ -350,49 +350,13 @@ const App: React.FC = () => {
350
350
351
351
< div className = "mb-6" >
352
352
< h2 className = "mb-2 text-xl font-semibold text-primary-900" > Footer</ h2 >
353
- < div className = "mb-4" >
354
- < h3 className = "mb-2 font-semibold text-primary-800" > Top Row</ h3 >
355
- < AddButton
356
- html = { "Raw HTML" }
357
- onClick = { ( ) =>
358
- addFunction ( setFooterTopRowFunctions , {
359
- type : "raw" ,
360
- html : "<div>Top Row Content</div>" ,
361
- } )
362
- }
363
- />
364
- < AddButton
365
- html = { "Primary Button" }
366
- onClick = { ( ) =>
367
- addFunction ( setFooterTopRowFunctions , {
368
- type : "primaryButton" ,
369
- label : "Click Me" ,
370
- href : "https://example.com" ,
371
- } )
372
- }
373
- />
353
+ < div className = "mb-4 flex items-center" >
354
+ < h3 className = "me-4 font-semibold text-primary-800" > Top Row</ h3 >
355
+ < ButtonGroup />
374
356
</ div >
375
- < div className = "mb-4" >
376
- < h3 className = "mb-2 font-semibold text-primary-800" > Bottom Row</ h3 >
377
- < AddButton
378
- html = { "Raw HTML" }
379
- onClick = { ( ) =>
380
- addFunction ( setFooterBottomRowFunctions , {
381
- type : "raw" ,
382
- html : "<div>Top Row Content</div>" ,
383
- } )
384
- }
385
- />
386
- < AddButton
387
- html = { "Primary Button" }
388
- onClick = { ( ) =>
389
- addFunction ( setFooterBottomRowFunctions , {
390
- type : "primaryButton" ,
391
- label : "Click Me" ,
392
- href : "https://example.com" ,
393
- } )
394
- }
395
- />
357
+ < div className = "mb-4 flex items-center" >
358
+ < h3 className = "me-4 font-semibold text-primary-800" > Bottom Row</ h3 >
359
+ < ButtonGroup />
396
360
</ div >
397
361
</ div >
398
362
0 commit comments