From 0f2aba1fc1203f978cad9ef99ad59f276654834b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 4 Feb 2025 16:07:30 -0600 Subject: [PATCH] Move header out of interaction settings form --- .../dialogs/PostInteractionSettingsDialog.tsx | 63 +++++++++++-------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/src/components/dialogs/PostInteractionSettingsDialog.tsx b/src/components/dialogs/PostInteractionSettingsDialog.tsx index a698574a49..5b15f06559 100644 --- a/src/components/dialogs/PostInteractionSettingsDialog.tsx +++ b/src/components/dialogs/PostInteractionSettingsDialog.tsx @@ -65,13 +65,30 @@ export function PostInteractionSettingsControlledDialog({ - + +
+ + ) } +export function Header() { + return ( + + + Post interaction settings + + + Customize who can interact with this post. + + + + ) +} + export type PostInteractionSettingsDialogProps = { control: Dialog.DialogControlProps /** @@ -203,21 +220,25 @@ export function PostInteractionSettingsDialogControlledInner( - {isLoading ? ( - - - - ) : ( - - )} + +
+ + {isLoading ? ( + + + + ) : ( + + )} + ) } @@ -283,17 +304,7 @@ export function PostInteractionSettingsForm({ return ( - - Post interaction settings - - - - Customize who can interact with this post. - - - - Quote settings