Skip to content

Commit 4acb5ee

Browse files
committed
Fix warnings
1 parent ea18781 commit 4acb5ee

File tree

13 files changed

+321
-376
lines changed

13 files changed

+321
-376
lines changed

backend/api/src/create-user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const createUser: APIHandler<'create-user'> = async (
2121
auth,
2222
req
2323
) => {
24-
const { deviceToken: preDeviceToken, adminToken } = props
24+
const { deviceToken: preDeviceToken } = props
2525
const firebaseUser = await admin.auth().getUser(auth.uid)
2626

2727
const testUserAKAEmailPasswordUser =

backend/email/emails/new-match.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface NewMatchEmailProps {
1616
export const NewMatchEmail = ({
1717
onUser,
1818
matchedWithUser,
19-
matchedProfile,
19+
// matchedProfile,
2020
unsubscribeUrl,
2121
email
2222
}: NewMatchEmailProps) => {
@@ -88,11 +88,11 @@ const container = {
8888
maxWidth: '600px',
8989
}
9090

91-
const logoContainer = {
92-
padding: '20px 0px 5px 0px',
93-
textAlign: 'center' as const,
94-
backgroundColor: '#ffffff',
95-
}
91+
// const logoContainer = {
92+
// padding: '20px 0px 5px 0px',
93+
// textAlign: 'center' as const,
94+
// backgroundColor: '#ffffff',
95+
// }
9696

9797
const content = {
9898
backgroundColor: '#ffffff',
@@ -112,9 +112,9 @@ const imageContainer = {
112112
margin: '20px 0',
113113
}
114114

115-
const profileImage = {
116-
// border: '1px solid #ec489a',
117-
}
115+
// const profileImage = {
116+
// // border: '1px solid #ec489a',
117+
// }
118118

119119
const button = {
120120
backgroundColor: '#4887ec',

backend/email/emails/new-message.tsx

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
1-
import {
2-
Body,
3-
Button,
4-
Container,
5-
Head,
6-
Html,
7-
Img,
8-
Link,
9-
Preview,
10-
Section,
11-
Text,
12-
} from '@react-email/components'
13-
import { type User } from 'common/user'
14-
import { type ProfileRow } from 'common/love/profile'
15-
import {
16-
jamesProfile,
17-
jamesUser,
18-
sinclairProfile,
19-
sinclairUser,
20-
} from './functions/mock'
21-
import { DOMAIN } from 'common/envs/constants'
22-
import { getLoveOgImageUrl } from 'common/love/og-image'
23-
import {button, container, content, Footer, imageContainer, main, paragraph, profileImage} from "email/utils";
1+
import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components'
2+
import {type User} from 'common/user'
3+
import {type ProfileRow} from 'common/love/profile'
4+
import {jamesProfile, jamesUser, sinclairUser,} from './functions/mock'
5+
import {DOMAIN} from 'common/envs/constants'
6+
import {button, container, content, Footer, imageContainer, main, paragraph} from "email/utils";
247

258
interface NewMessageEmailProps {
269
fromUser: User
@@ -32,21 +15,21 @@ interface NewMessageEmailProps {
3215
}
3316

3417
export const NewMessageEmail = ({
35-
fromUser,
36-
fromUserProfile,
37-
toUser,
38-
channelId,
39-
unsubscribeUrl,
40-
email,
41-
}: NewMessageEmailProps) => {
18+
fromUser,
19+
// fromUserProfile,
20+
toUser,
21+
channelId,
22+
unsubscribeUrl,
23+
email,
24+
}: NewMessageEmailProps) => {
4225
const name = toUser.name.split(' ')[0]
4326
const creatorName = fromUser.name
4427
const messagesUrl = `https://${DOMAIN}/messages/${channelId}`
45-
const userImgSrc = getLoveOgImageUrl(fromUser, fromUserProfile)
28+
// const userImgSrc = getLoveOgImageUrl(fromUser, fromUserProfile)
4629

4730
return (
4831
<Html>
49-
<Head />
32+
<Head/>
5033
<Preview>New message from {creatorName}</Preview>
5134
<Body style={main}>
5235
<Container style={container}>

backend/scripts/remove-tiptap-nodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
select,
55
from,
66
where,
7-
} from '../shared/src/supabase/sql-builder'
7+
} from 'shared/supabase/sql-builder'
88
import { type JSONContent } from '@tiptap/core'
99

1010
const removeNodesOfType = (

common/src/supabase/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ export type Database = {
750750
Returns: Json
751751
}
752752
ts_to_millis: {
753-
Args: { ts: string } | { ts: string }
753+
Args: { ts: string }
754754
Returns: number
755755
}
756756
}

web/components/answers/free-response-add-question.tsx

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
1-
import { PlusIcon } from '@heroicons/react/outline'
1+
import {ArrowLeftIcon, PlusIcon} from '@heroicons/react/outline'
22
import clsx from 'clsx'
3-
import { User } from 'common/user'
4-
import { QuestionWithCountType } from 'web/hooks/use-questions'
5-
import { Button } from 'web/components/buttons/button'
6-
import { Col } from 'web/components/layout/col'
7-
import {
8-
MODAL_CLASS,
9-
Modal,
10-
SCROLLABLE_MODAL_CLASS,
11-
} from 'web/components/layout/modal'
12-
import { Row } from 'web/components/layout/row'
13-
import { IndividualQuestionRow } from '../questions-form'
14-
import { TbMessage } from 'react-icons/tb'
15-
import { OtherProfileAnswers } from './other-profile-answers'
16-
import { ArrowLeftIcon } from '@heroicons/react/outline'
17-
import { usePersistentInMemoryState } from 'web/hooks/use-persistent-in-memory-state'
3+
import {User} from 'common/user'
4+
import {QuestionWithCountType} from 'web/hooks/use-questions'
5+
import {Button} from 'web/components/buttons/button'
6+
import {Col} from 'web/components/layout/col'
7+
import {Modal, MODAL_CLASS, SCROLLABLE_MODAL_CLASS,} from 'web/components/layout/modal'
8+
import {Row} from 'web/components/layout/row'
9+
import {IndividualQuestionRow} from '../questions-form'
10+
import {TbMessage} from 'react-icons/tb'
11+
import {OtherProfileAnswers} from './other-profile-answers'
12+
import {usePersistentInMemoryState} from 'web/hooks/use-persistent-in-memory-state'
1813

1914
export function AddQuestionButton(props: {
2015
isFirstQuestion?: boolean
2116
questions: QuestionWithCountType[]
2217
user: User
2318
refreshAnswers: () => void
2419
}) {
25-
const { isFirstQuestion, questions, user, refreshAnswers } = props
20+
const {questions, user, refreshAnswers} = props
2621
const [openModal, setOpenModal] = usePersistentInMemoryState(
2722
false,
2823
`add-question-${user.id}`
@@ -31,7 +26,7 @@ export function AddQuestionButton(props: {
3126
<>
3227
<Button color={'gray-outline'} onClick={() => setOpenModal(true)}>
3328
<Row className="items-center gap-1">
34-
<PlusIcon className="h-4 w-4" />
29+
<PlusIcon className="h-4 w-4"/>
3530
Add Free Response
3631
</Row>
3732
</Button>
@@ -53,7 +48,7 @@ function AddQuestionModal(props: {
5348
user: User
5449
refreshAnswers: () => void
5550
}) {
56-
const { open, setOpen, questions, user, refreshAnswers } = props
51+
const {open, setOpen, questions, user, refreshAnswers} = props
5752
const addableQuestions = questions.filter(
5853
(q) => q.answer_type === 'free_response'
5954
)
@@ -83,7 +78,7 @@ function AddQuestionModal(props: {
8378
setExpandedQuestion(null)
8479
}}
8580
>
86-
<ArrowLeftIcon className={'h-4 w-4'} />
81+
<ArrowLeftIcon className={'h-4 w-4'}/>
8782
</Button>
8883
<span className="font-semibold">{expandedQuestion.question}</span>
8984
</Row>
@@ -120,7 +115,7 @@ function AddQuestionModal(props: {
120115
}}
121116
>
122117
{question.answer_count}
123-
<TbMessage className="h-4 w-4" />
118+
<TbMessage className="h-4 w-4"/>
124119
</button>
125120
</Row>
126121
)

web/components/answers/profile-answers.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { User } from 'common/user'
2-
import { Col } from 'web/components/layout/col'
3-
import { CompatibilityQuestionsDisplay } from './compatibility-questions-display'
4-
import { FreeResponseDisplay } from './free-response-display'
5-
import { Profile } from 'common/love/profile'
1+
import {User} from 'common/user'
2+
import {Col} from 'web/components/layout/col'
3+
import {CompatibilityQuestionsDisplay} from './compatibility-questions-display'
4+
import {Profile} from 'common/love/profile'
65

76
export function ProfileAnswers(props: {
87
isCurrentUser: boolean
@@ -11,7 +10,7 @@ export function ProfileAnswers(props: {
1110
fromSignup?: boolean
1211
fromProfilePage?: Profile
1312
}) {
14-
const { isCurrentUser, user, fromSignup, fromProfilePage, profile } = props
13+
const {isCurrentUser, user, fromSignup, fromProfilePage, profile} = props
1514

1615
return (
1716
<Col className={'mt-2 gap-5'}>

0 commit comments

Comments
 (0)