Skip to content

Commit

Permalink
Rename prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-yau-ttd committed Oct 16, 2024
1 parent 1f7a2d6 commit 3556c33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/web/components/Navigation/NoParticipantAccessView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function NoParticipantAccessView() {
Use the dropdown below to navigate to a participant you have access to.
</p>
<div className='switcher'>
<ParticipantSwitcher blankInitialValue />
<ParticipantSwitcher noInitialValue />
</div>
</div>
);
Expand Down
8 changes: 5 additions & 3 deletions src/web/components/Navigation/ParticipantSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import { SelectDropdown, SelectOption } from '../Input/SelectDropdown';
import './ParticipantSwitcher.scss';

type ParticipantSwitcherProps = Readonly<{
blankInitialValue?: boolean;
noInitialValue?: boolean;
}>;

export function ParticipantSwitcher({ blankInitialValue }: ParticipantSwitcherProps) {
export function ParticipantSwitcher({
noInitialValue,
}: ParticipantSwitcherProps) {
const { participant } = useContext(ParticipantContext);
const { LoggedInUser } = useContext(CurrentUserContext);
const navigate = useNavigate();
Expand All @@ -39,7 +41,7 @@ export function ParticipantSwitcher({ blankInitialValue }: ParticipantSwitcherPr
<div className='participant-switcher'>
{showDropdown ? (
<SelectDropdown
initialValue={blankInitialValue ? undefined : currentParticipantOption}
initialValue={noInitialValue ? undefined : currentParticipantOption}
options={participantOptions}
onSelectedChange={handleOnSelectedChange}
/>
Expand Down

0 comments on commit 3556c33

Please sign in to comment.