diff options
Diffstat (limited to 'src/components/dms/NewChat.tsx')
-rw-r--r-- | src/components/dms/NewChat.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/dms/NewChat.tsx b/src/components/dms/NewChat.tsx index bbe118f04..86d421eba 100644 --- a/src/components/dms/NewChat.tsx +++ b/src/components/dms/NewChat.tsx @@ -23,8 +23,13 @@ import {Envelope_Stroke2_Corner0_Rounded as Envelope} from '../icons/Envelope' import {ListMaybePlaceholder} from '../Lists' import {Text} from '../Typography' -export function NewChat({onNewChat}: {onNewChat: (chatId: string) => void}) { - const control = Dialog.useDialogControl() +export function NewChat({ + control, + onNewChat, +}: { + control: Dialog.DialogControlProps + onNewChat: (chatId: string) => void +}) { const t = useTheme() const {_} = useLingui() |