Skip to content

Commit f8c1b3e

Browse files
add create account button to floating menu (canada-ca#2480)
* Add Create Account button to Floating menu * Hide sign in buttons on small width
1 parent d691f57 commit f8c1b3e

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

frontend/src/FloatingMenu.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ export const FloatingMenu = () => {
157157
<FloatingMenuLink to="/sign-in" text={t`Sign In`} />
158158
)}
159159

160+
{!isLoggedIn() && (
161+
<FloatingMenuLink to="/create-user" text={t`Create Account`} />
162+
)}
163+
160164
<Divider
161165
borderWidth="2px"
162166
borderColor="accent"

frontend/src/TopBanner.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export const TopBanner = (props) => {
4444
to="/"
4545
variant="primary hover"
4646
mx={1}
47-
px={{base:1, md:3}}
48-
fontSize={{ base: 'xs', md: 'md' }}
47+
px={3}
48+
display={{ base: 'none', md: 'inline' }}
4949
onClick={() => {
5050
logout()
5151
toast({
@@ -66,8 +66,8 @@ export const TopBanner = (props) => {
6666
variant="primary white"
6767
to="/sign-in"
6868
mx={1}
69-
px={{base:1, md:3}}
70-
fontSize={{ base: 'xs', md: 'md' }}
69+
px={3}
70+
display={{ base: 'none', md: 'inline' }}
7171
>
7272
<Trans>Sign In</Trans>
7373
</TrackerButton>
@@ -79,8 +79,8 @@ export const TopBanner = (props) => {
7979
variant="primary hover"
8080
to="/create-user"
8181
mx={1}
82-
px={{base:1, md:3}}
83-
fontSize={{ base: 'xs', md: 'md' }}
82+
px={3}
83+
display={{ base: 'none', md: 'inline' }}
8484
>
8585
<Trans>Create Account</Trans>
8686
</TrackerButton>

0 commit comments

Comments
 (0)