Skip to content

Commit

Permalink
refactor(envited.ascs.digital): Remove isPublished
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Branje <[email protected]>
  • Loading branch information
jeroenbranje committed Feb 27, 2024
1 parent 56bbd81 commit 23eb476
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const ProfileSchema = z.object({
principalEmail: z.string().email().optional().or(z.literal('')),
website: z.string().url().optional().or(z.literal('')),
offerings: z.string().array().optional(),
isPublished: z.boolean(),
})

export const ValidateProfileForm = ProfileSchema.safeParse
12 changes: 0 additions & 12 deletions apps/envited.ascs.digital/modules/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type ProfileInputs = {
principalEmail: string
website: string
offerings: []
isPublished: boolean
}

export const Profile: FC<ProfileProps> = ({ profile, memberCategories }) => {
Expand Down Expand Up @@ -72,7 +71,6 @@ export const Profile: FC<ProfileProps> = ({ profile, memberCategories }) => {
principalEmail: propOr('', 'principalEmail')(profile),
website: propOr('', 'website')(profile),
offerings: [],
isPublished: propOr(false, 'isPublished')(profile),
},
mode: 'onChange',
})
Expand Down Expand Up @@ -127,16 +125,6 @@ export const Profile: FC<ProfileProps> = ({ profile, memberCategories }) => {
/>
</div>

<div className="col-span-full">
<Controller
name="isPublished"
control={control}
render={({ field: { ref, value, ...field } }) => (
<Checkbox label={t('[Label] is published')} checked={value} inputRef={ref} {...field} />
)}
/>
</div>

<div className="col-span-full">
<Controller
name="offerings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"[Label] company name": "Company name",
"[Label] about": "About",
"[Label] about description": "Write a few sentences about the company.",
"[Label] is published": "Is published",
"[Label] logo": "Logo",
"[Label] offerings": "Offerings",
"[Label] website": "Website",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"[Label] company name": "Company name",
"[Label] about": "About",
"[Label] about description": "Write a few sentences about the company.",
"[Label] is published": "Is published",
"[Label] logo": "Logo",
"[Label] offerings": "Offerings",
"[Label] website": "Website",
Expand Down

0 comments on commit 23eb476

Please sign in to comment.