diff --git a/components/core/ProfileIcons.tsx b/components/core/ProfileIcons.tsx index 5397bea0..1e2b3751 100644 --- a/components/core/ProfileIcons.tsx +++ b/components/core/ProfileIcons.tsx @@ -13,7 +13,7 @@ interface ProfileIconsProps { } export const ProfileIcons = (props: ProfileIconsProps) => { - const { citizenshipStatus, roleInfos, size } = props + const { citizenshipStatus, size } = props const citizenshipInfo = citizenshipInfoFromStatus(citizenshipStatus) @@ -29,15 +29,6 @@ export const ProfileIcons = (props: ProfileIconsProps) => { /> )} - {roleInfos.map((roleInfo) => ( - - - - ))} ) } diff --git a/components/profile/EditProfileForm.tsx b/components/profile/EditProfileForm.tsx index 818b871e..ecb8cdec 100644 --- a/components/profile/EditProfileForm.tsx +++ b/components/profile/EditProfileForm.tsx @@ -11,7 +11,6 @@ import { HorizontalDivider } from '@/components/core/Divider' import { AboutInput } from '@/components/profile/AboutInput' import { ContactInput } from '@/components/profile/ContactInput' import { Identity } from './edit-profile/Identity' -import { Roles } from './edit-profile/Roles' export interface UpdateProfileProps { user: MeFragment @@ -23,7 +22,6 @@ export const EditProfileForm = ({ user, profileEditParams, onChange, - onRolesChange, }: { user: MeFragment profileEditParams: ProfileEditParams['data'] | null @@ -48,8 +46,6 @@ export const EditProfileForm = ({ onChange={onChange} /> - - - diff --git a/components/profile/view-profile/ProfileSetupSection.tsx b/components/profile/view-profile/ProfileSetupSection.tsx index a58f8f22..ec6962d3 100644 --- a/components/profile/view-profile/ProfileSetupSection.tsx +++ b/components/profile/view-profile/ProfileSetupSection.tsx @@ -9,6 +9,7 @@ import { Button } from '@/components/core/Button' import events from '@/lib/googleAnalytics/events' import { MeFragment, ProfileSetupStateParams } from '@/utils/types/profile' import { useBackend } from '@/components/hooks/useBackend' +import { useState } from 'react' interface ProfileSetupSectionProps { profileId: string @@ -24,13 +25,16 @@ export const ProfileSetupSection = ({ const { post } = useBackend() const progress = complete ? 100 : 25 - if (!me || me.isProfileSetupDismissed) return null + const [hideLinkContainer, setHideLinkContainer] = useState(false) + + if (!me || me.isProfileSetupDismissed || hideLinkContainer) return null const handleSetupClick = () => { router.push(`/profile/${profileId}/setup`) } const handleDismissClick = () => { + setHideLinkContainer(true) post('PROFILE_SETUP_STATE', { state: 'dismissed', } as ProfileSetupStateParams)