add ReviewDB in new profiles

This commit is contained in:
Vendicated 2024-06-26 16:20:34 +02:00
parent 6d4c9339dc
commit e0d99e2f6c
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
4 changed files with 63 additions and 6 deletions

View file

@ -119,7 +119,9 @@ function ReviewList({ refetch, reviews, hideOwnReview, profileId }: { refetch():
}
export function ReviewsInputComponent({ discordId, isAuthor, refetch, name }: { discordId: string, name: string; isAuthor: boolean; refetch(): void; }) {
export function ReviewsInputComponent(
{ discordId, isAuthor, refetch, name, modalKey }: { discordId: string, name: string; isAuthor: boolean; refetch(): void; modalKey?: string; }
) {
const { token } = Auth;
const editorRef = useRef<any>(null);
const inputType = ChatInputTypes.FORM;
@ -148,6 +150,7 @@ export function ReviewsInputComponent({ discordId, isAuthor, refetch, name }: {
type={inputType}
disableThemedBackground={true}
setEditorRef={ref => editorRef.current = ref}
parentModalKey={modalKey}
textValue=""
onSubmit={
async res => {