-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1 make the navbar and input field sticky/fixed
- Loading branch information
1 parent
a3df2d9
commit 1368d9a
Showing
10 changed files
with
205 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
|
||
interface ServiceItem { | ||
name: string; | ||
address: string; | ||
rating: number; | ||
user_ratings_total: number; | ||
place_id: string; | ||
} | ||
|
||
interface LocalServiceCardProps { | ||
name: string; | ||
address: string; | ||
rating: number; | ||
user_ratings_total: number; | ||
place_id: string; | ||
} | ||
|
||
type ConversationItem = { | ||
sender: string; | ||
text: React.ReactNode; | ||
}; | ||
|
||
interface ViewMoreProps { | ||
data: ServiceItem[]; | ||
} | ||
|
||
type ChatPageProps = { | ||
message: ConversationItem; | ||
index: number; | ||
image: StaticImageData | string; | ||
logo: StaticImageData; | ||
isLoading: boolean; | ||
|
||
conversationEndRef: React.RefObject<HTMLDivElement>; | ||
}; | ||
|
||
interface ChatInboxProps { | ||
locationError: string | null; | ||
manualLocation: string; | ||
textareaRef: React.RefObject<HTMLTextAreaElement>; | ||
userMessage: string; | ||
handleInput: (e: ChangeEvent<HTMLTextAreaElement>) => void; | ||
isProcessing: boolean; | ||
handleSendMessage: () => Promise<void>; | ||
setManualLocation: React.Dispatch<React.SetStateAction<string>>; | ||
} |
Oops, something went wrong.