Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { Paper, Button } from '@mui/material';
import { Paper, Button, Typography } from '@mui/material';

import { routerPaths } from '@/router/router-paths';

Expand All @@ -21,7 +21,7 @@ export function SignInSection() {
gap: 2,
}}
>
<Button
{/* <Button
component={Link}
to={routerPaths.signUp}
variant="contained"
Expand All @@ -30,7 +30,7 @@ export function SignInSection() {
fullWidth
>
{t('homepage.signUp')}
</Button>
</Button> */}
<Button
component={Link}
to={routerPaths.signIn}
Expand All @@ -41,6 +41,9 @@ export function SignInSection() {
>
{t('homepage.signIn')}
</Button>
<Typography variant="body2" sx={{ textAlign: 'center' }}>
{t('homepage.signUpClosed')}
</Typography>
</Paper>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type SubmitEvent } from 'react';
import { FormProvider, useForm } from 'react-hook-form';
import { Box, Divider, Grid, Link as MuiLink, Typography } from '@mui/material';
import { Box, Grid, Link as MuiLink } from '@mui/material';
import { zodResolver } from '@hookform/resolvers/zod';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
Expand Down Expand Up @@ -80,7 +80,7 @@ export function SignInForm({
>
{t('worker.signInForm.submitBtn')}
</Button>
<Box sx={{ position: 'relative', width: '100%' }}>
{/* <Box sx={{ position: 'relative', width: '100%' }}>
<Divider sx={{ bgcolor: 'border.main' }} />
<Typography
variant="body2"
Expand Down Expand Up @@ -122,7 +122,7 @@ export function SignInForm({
>
{t('worker.signInForm.signUp')}
</MuiLink>
</Box>
</Box> */}
</Grid>
</form>
</FormProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function EmailVerificationFormContainer() {
}}
>
<Button variant="outlined" fullWidth onClick={handleCancel}>
{t('worker.verifyEmail.backToSignUp')}
{t('worker.verifyEmail.backToSignIn')}
</Button>
</Box>
{!!user && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const routerPaths = {
homePage: '/',
signIn: '/sign-in',
signUp: '/sign-up',
// signUp: '/sign-up',
resetPassword: '/reset-password',
resetPasswordSuccess: '/reset-password-success',
sendResetLink: '/send-reset-link',
Expand Down
10 changes: 5 additions & 5 deletions packages/apps/human-app/frontend/src/router/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { SignInPage, VerifyUserPage } from '@/modules/signin/worker';
import { JobsDiscoveryPage } from '@/modules/worker/jobs-discovery';
import { MyJobsPage } from '@/modules/worker/jobs/my-jobs/my-jobs.page';
import { ProfilePage } from '@/modules/worker/profile';
import { SignUpPage } from '@/modules/signup/worker';
// import { SignUpPage } from '@/modules/signup/worker';
import { HomePage } from '@/modules/homepage';
import {
ResetPasswordPage,
Expand All @@ -36,10 +36,10 @@ export const unprotectedRoutes: RouteProps[] = [
path: routerPaths.signIn,
element: <SignInPage />,
},
{
path: routerPaths.signUp,
element: <SignUpPage />,
},
// {
// path: routerPaths.signUp,
// element: <SignUpPage />,
// },
{
path: routerPaths.emailVerification,
element: <EmailVerificationProcessPage />,
Expand Down
2 changes: 2 additions & 0 deletions packages/apps/human-app/frontend/src/shared/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"humanApp": "HUMAN App",
"completeJobs": "Complete jobs, earn HMT.",
"signUp": "Sign Up",
"signUpClosed": "Registrations are currently closed. We are not accepting new users at this time.",
"signIn": "Sign In"
},
"worker": {
Expand Down Expand Up @@ -121,6 +122,7 @@
"title": "Verify Email",
"checkYourInbox": "Check your inbox",
"backToSignUp": "Back to Sign Up",
"backToSignIn": "Back to Sign In",
"btn": "Resend Email",
"paragraph1": "We sent a verification link to <1>{{email}}</1>",
"paragraph2": "Click the link in the email to verify your account. The link expires in 24 hours.",
Expand Down
Loading