* Replace Terms & Conditions with Sign Up Link on Sign In #4502 * terms replaced with signup link * begin fix (incomplete / do not merge) * Revert * Introduce welcome page * Update Twenty website --------- Co-authored-by: Mamatha Yarramaneni <mamathayarramaneni@Mamathas-Macbook.local> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -3,8 +3,9 @@ import { getPageTitleFromPath } from '../title-utils';
|
||||
describe('title-utils', () => {
|
||||
it('should return the correct title for a given path', () => {
|
||||
expect(getPageTitleFromPath('/verify')).toBe('Verify');
|
||||
expect(getPageTitleFromPath('/sign-in')).toBe('Sign In');
|
||||
expect(getPageTitleFromPath('/sign-up')).toBe('Sign Up');
|
||||
expect(getPageTitleFromPath('/welcome')).toBe(
|
||||
'Sign in or Create an account',
|
||||
);
|
||||
expect(getPageTitleFromPath('/invite/:workspaceInviteHash')).toBe('Invite');
|
||||
expect(getPageTitleFromPath('/create/workspace')).toBe('Create Workspace');
|
||||
expect(getPageTitleFromPath('/create/profile')).toBe('Create Profile');
|
||||
|
||||
@ -6,10 +6,8 @@ export const getPageTitleFromPath = (pathname: string): string => {
|
||||
switch (pathname) {
|
||||
case AppPath.Verify:
|
||||
return 'Verify';
|
||||
case AppPath.SignIn:
|
||||
return 'Sign In';
|
||||
case AppPath.SignUp:
|
||||
return 'Sign Up';
|
||||
case AppPath.SignInUp:
|
||||
return 'Sign in or Create an account';
|
||||
case AppPath.Invite:
|
||||
return 'Invite';
|
||||
case AppPath.CreateWorkspace:
|
||||
|
||||
Reference in New Issue
Block a user