From a568cee0bc966bf117bc427141763e7ec2db6fb7 Mon Sep 17 00:00:00 2001 From: dalemcgrew Date: Sat, 9 Mar 2024 06:51:09 -0800 Subject: [PATCH] Added standard LinkToAdminTools, so we don't have to deal with voter object directly in the components that need a link to administration tools. (Iteration) --- src/js/common/components/Widgets/LinkToAdminTools.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/common/components/Widgets/LinkToAdminTools.jsx b/src/js/common/components/Widgets/LinkToAdminTools.jsx index dfa54ea2b..9dc790cd9 100644 --- a/src/js/common/components/Widgets/LinkToAdminTools.jsx +++ b/src/js/common/components/Widgets/LinkToAdminTools.jsx @@ -35,7 +35,7 @@ class LinkToAdminTools extends Component { return ( {/* 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)) && ( Admin only: }> @@ -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;