[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>
This commit is contained in:
Samuel Newman 2024-04-30 18:15:48 +01:00 committed by GitHub
parent bcd3678067
commit 7b694fd860
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 204 additions and 124 deletions

View file

@ -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()