diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-04-30 18:15:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 18:15:48 +0100 |
commit | 7b694fd860d165296e1aebd4420d97d77f7681fa (patch) | |
tree | 7f7c5ebb6743163f6f490f39ceac830be035effd /src/components/dms/NewChat.tsx | |
parent | bcd3678067c2b807582794ce72f26c3af25d3a75 (diff) | |
download | voidsky-7b694fd860d165296e1aebd4420d97d77f7681fa.tar.zst |
[Clipclops] Use API data for clipclop list (#3769)
* use real API * remove extra tab icon * messages list web layout + style improvements * use style's text color for input * make new chat button way more obvious --------- Co-authored-by: Hailey <me@haileyok.com>
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() |