Skip to content

Commit

Permalink
refector: move set registration button
Browse files Browse the repository at this point in the history
  • Loading branch information
wz2k committed Oct 31, 2024
1 parent 476a07d commit 8e3e416
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion components/tabs/voteEvent/ResultsTab/ResultsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const ResultsTab: FC<Props> = ({ voteEvent, mutate }) => {
>
<Button
id="publish-results-modal-button"
variant="contained"
variant="outlined"
onClick={() => setOpenPublishResultsModal(true)}
>
{voteEvent.resultsFilter.areResultsPublished
Expand Down
34 changes: 17 additions & 17 deletions components/tabs/voteEvent/VoterManagementTab/VoterManagementTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,8 @@ const VoterManagementTab: FC<Props> = ({ voteEvent, mutate }) => {
xs: "center",
md: "left",
}}
direction={{ xs: "column", md: "row" }}
gap={1}
>
{voterManagementConfigButton}
{selectedList === LIST_TYPES.INTERNAL_VOTERS && (
<Button
id="open-registration-modal-button"
variant="contained"
onClick={() => setIsRegistrationModalOpen(true)}
>
Self Registration
</Button>
)}
</Grid>
<Grid item xs={12} md={4} display="flex" justifyContent="center">
{internalOnly && (
Expand Down Expand Up @@ -197,14 +186,25 @@ const VoterManagementTab: FC<Props> = ({ voteEvent, mutate }) => {
xs: "center",
md: "right",
}}
direction={{ xs: "column", md: "row" }}
gap={1}
>
{selectedList === LIST_TYPES.INTERNAL_VOTERS && (
<AddInternalVoterMenu
voteEventId={voteEventId}
voterManagement={voterManagement}
mutateInternalVoters={mutateInternalVoters}
mutateVoteEvent={mutate}
/>
<>
<Button
id="open-registration-modal-button"
variant="outlined"
onClick={() => setIsRegistrationModalOpen(true)}
>
Set Registration
</Button>
<AddInternalVoterMenu
voteEventId={voteEventId}
voterManagement={voterManagement}
mutateInternalVoters={mutateInternalVoters}
mutateVoteEvent={mutate}
/>
</>
)}
{selectedList === LIST_TYPES.EXTERNAL_VOTERS && (
<AddExternalVoterMenu
Expand Down

0 comments on commit 8e3e416

Please sign in to comment.