Skip to content

Commit 6585f45

Browse files
committed
Remove careerGoal from settings
1 parent 9c1e88c commit 6585f45

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/components/settings/PrivateSettings.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import toast, { Toaster } from 'react-hot-toast'
88

99
type Inputs = {
1010
email: string
11-
careerGoal: string
1211
}
1312

1413
export default function PrivateSettings() {
@@ -27,9 +26,6 @@ export default function PrivateSettings() {
2726
body: JSON.stringify({
2827
user: {
2928
email: data.email,
30-
account: {
31-
careerGoal: data.careerGoal,
32-
},
3329
},
3430
}),
3531
}).then((res) => {
@@ -116,16 +112,6 @@ export default function PrivateSettings() {
116112
: 'This field is required'
117113
}
118114
/>
119-
<Input
120-
label="What is your current career goal?"
121-
type="text"
122-
name="careerGoal"
123-
className="col-span-4 sm:col-span-2 sm:row-start-2"
124-
defaultValue={user.account?.careerGoal ?? ''}
125-
ref={register}
126-
hasError={Boolean(errors.careerGoal)}
127-
errorMessage="Something went wrong!"
128-
/>
129115
</div>
130116
</div>
131117
<div className="px-4 py-3 text-right bg-gray-50 sm:px-6">

src/pages/members.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export type User = Partial<{
5252
firstName: string
5353
lastName: string
5454
bio: string
55-
careerGoal: string
5655
}>
5756
socials: Partial<{
5857
github: string

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy