Skip to content

Commit

Permalink
add login, signup, and forgot password links to config
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed May 19, 2024
1 parent f612237 commit 9176f07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function Login() {
/>
</Flex>
<P>
<LinkColored href="/forgot-password" $color={COLORS.greyMid}>
<LinkColored href={CONFIG.forgotPassword} $color={COLORS.greyMid}>
Forgot your password?
</LinkColored>
</P>
Expand All @@ -111,7 +111,7 @@ export default function Login() {
<BigBlueButton type="submit">Log In</BigBlueButton>
<PCentered>
Don’t have an account yet?{' '}
<LinkColored $color={COLORS.blueMid} href="/signup">
<LinkColored $color={COLORS.blueMid} href={CONFIG.signup}>
Sign up
</LinkColored>
</PCentered>
Expand Down
3 changes: 2 additions & 1 deletion src/app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { BigBlueButton } from '@/components/Buttons';
import Icon from '@/components/Icon';
import PasswordComplexity from '@/components/PasswordComplexity';
import TextInput from '@/components/TextInput/index';
import CONFIG from '@/lib/configs';
import COLORS from '@/styles/colors';
import { Flex, SmallCardForm } from '@/styles/containers';
import { H1, H4, LinkColored, P } from '@/styles/text';
Expand Down Expand Up @@ -128,7 +129,7 @@ export default function SignUp() {
<BigBlueButton type="submit">Sign Up</BigBlueButton>
<PCentered>
Have an account already?{' '}
<LinkColored $color={COLORS.blueMid} href="/login">
<LinkColored $color={COLORS.blueMid} href={CONFIG.login}>
Log in
</LinkColored>
</PCentered>
Expand Down
3 changes: 3 additions & 0 deletions src/lib/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const CONFIG = {
cases: '/cases',
lca: '/limited-case-assignments',
languageSupport: '/language-support',
forgotPassword: '/forgot-password',
login: '/login',
signup: '/signup',
// social media links
facebook: 'https://www.facebook.com/ImmigrationJusticeProjectOfSanDiego/',
xTwitter: 'https://twitter.com/ijpsandiego?lang=en',
Expand Down

0 comments on commit 9176f07

Please sign in to comment.