Skip to content

Commit

Permalink
Reorganize props and add comments to identify groups
Browse files Browse the repository at this point in the history
  • Loading branch information
aaditkamat committed Feb 25, 2024
1 parent 9ac9d8c commit cfd1584
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions client/src/types/Props.ts
Original file line number Diff line number Diff line change
@@ -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;
}
Expand All @@ -32,6 +40,4 @@ export type SafeAreaWrapperProps = {
children: React.ReactNode;
}

export type SignUpButtonProps = {
onPress?: () => void;
}

0 comments on commit cfd1584

Please sign in to comment.