) => (
+
+)
+DialogBody.displayName = "DialogBody"
+
export {
Dialog,
DialogPortal,
@@ -117,4 +133,5 @@ export {
DialogFooter,
DialogTitle,
DialogDescription,
+ DialogBody,
}
diff --git a/admin-spa/src/components/ui/rich-text-editor.tsx b/admin-spa/src/components/ui/rich-text-editor.tsx
index 7e7e655..ad7b10c 100644
--- a/admin-spa/src/components/ui/rich-text-editor.tsx
+++ b/admin-spa/src/components/ui/rich-text-editor.tsx
@@ -25,7 +25,7 @@ import { Button } from './button';
import { Input } from './input';
import { Label } from './label';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './select';
-import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from './dialog';
+import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogBody } from './dialog';
import { __ } from '@/lib/i18n';
interface RichTextEditorProps {
@@ -327,53 +327,55 @@ export function RichTextEditor({
-
-
-
-
setButtonText(e.target.value)}
- placeholder={__('e.g., View Order')}
- />
+
+
+
+
+ setButtonText(e.target.value)}
+ placeholder={__('e.g., View Order')}
+ />
+
+
+
+
+
setButtonHref(e.target.value)}
+ placeholder="{order_url}"
+ />
+ {variables.length > 0 && (
+
+ {variables.filter(v => v.includes('_url')).map((variable) => (
+ setButtonHref(buttonHref + `{${variable}}`)}
+ >
+ {`{${variable}}`}
+
+ ))}
+
+ )}
+
+
+
+
+
+
-
-
-
-
setButtonHref(e.target.value)}
- placeholder="{order_url}"
- />
- {variables.length > 0 && (
-
- {variables.filter(v => v.includes('_url')).map((variable) => (
- setButtonHref(buttonHref + `{${variable}}`)}
- >
- {`{${variable}}`}
-
- ))}
-
- )}
-
-
-
-
-
-
-
+