Skip to content

Commit

Permalink
Added standard LinkToAdminTools, so we don't have to deal with voter …
Browse files Browse the repository at this point in the history
…object directly in the components that need a link to administration tools. (Iteration)
  • Loading branch information
DaleMcGrew committed Mar 9, 2024
1 parent e7acae7 commit a568cee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/common/components/Widgets/LinkToAdminTools.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class LinkToAdminTools extends Component {
return (
<LinkToAdminToolsWrapper>
{/* Show links to this candidate in the admin tools */}
{(voter && (voter.is_admin || voter.is_verified_volunteer)) && (
{(voter && (voter.is_admin || voter.is_political_data_manager || voter.is_verified_volunteer)) && (
<span className="u-wrap-links d-print-none">
Admin only:
<Suspense fallback={<></>}>
Expand All @@ -60,8 +60,8 @@ LinkToAdminTools.propTypes = {
};

const LinkToAdminToolsWrapper = styled('div')`
margin-top: ${() => (isCordova() ? '100px' : null)};
padding-bottom: ${() => (isCordova() ? '800px' : null)};
margin-top: ${() => (isCordova() ? '100px' : '20px')};
padding-bottom: ${() => (isCordova() ? '100px' : '20px')};
`;

export default LinkToAdminTools;

0 comments on commit a568cee

Please sign in to comment.