From cfd15841f234a1af020805d4ff427c28b11ac8ff Mon Sep 17 00:00:00 2001 From: Aadit Kamat <30969577+aaditkamat@users.noreply.github.com> Date: Sun, 25 Feb 2024 09:54:54 -0500 Subject: [PATCH] Reorganize props and add comments to identify groups --- client/src/types/Props.ts | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/client/src/types/Props.ts b/client/src/types/Props.ts index ab65af043..7784a15b4 100644 --- a/client/src/types/Props.ts +++ b/client/src/types/Props.ts @@ -1,29 +1,37 @@ import React from "react"; import { MessageType } from "./Message"; -export type MessageProps = { - messageContent: string; - time: number; - author: string; +/* button props */ +export type LogInButtonProps = { + onPress?: () => void; } -export type ChatSendButtonProps = { - onPress?: () => void, +export type SignUpButtonProps = { + onPress?: () => void; } +export type ChatSendButtonProps = { + onPress?: () => void, +} + +/* input props */ export type ChatInputProps = { - value?: string, - onChangeText?: (text: string) => void + value?: string, + onChangeText?: (text: string) => void } -export type LogInButtonProps = { - onPress?: () => void; +/* message related props */ +export type MessageProps = { + messageContent: string; + time: number; + author: string; } export type MessageChannelProps = { messages: MessageType[], } +/* misc props*/ export type CounterProps = { count: number; } @@ -32,6 +40,4 @@ export type SafeAreaWrapperProps = { children: React.ReactNode; } -export type SignUpButtonProps = { - onPress?: () => void; -} +