Skip to content

Commit 3020438

Browse files
committed
Remove welcome
1 parent f380142 commit 3020438

File tree

7 files changed

+1
-200
lines changed

7 files changed

+1
-200
lines changed

src/app/layouts/default/default.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import useMainClassContext, {
99
} from '~/contexts/main-class';
1010
import useLanguageContext from '~/contexts/language';
1111
import ReactModal from 'react-modal';
12-
import Welcome from './welcome/welcome';
1312
import TakeoverDialog from './takeover-dialog/takeover-dialog';
1413
import cn from 'classnames';
1514
import './default.scss';
@@ -53,7 +52,6 @@ function Main({children}: React.PropsWithChildren<object>) {
5352
ref={ref}
5453
tabIndex={-1}
5554
>
56-
<Welcome />
5755
<TakeoverDialog />
5856
{children}
5957
</div>

src/app/layouts/default/welcome/welcome-content.js

Lines changed: 0 additions & 109 deletions
This file was deleted.

src/app/layouts/default/welcome/welcome.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/app/layouts/default/welcome/welcome.scss

Lines changed: 0 additions & 51 deletions
This file was deleted.

test/src/components/shell.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as GP from '~/pages/general/general';
1010
import * as LDH from '~/layouts/default/header/header';
1111
import * as MM from '~/layouts/default/header/menus/menus';
1212
import * as MSP from '~/layouts/default/microsurvey-popup/microsurvey-popup';
13-
import * as WC from '~/layouts/default/welcome/welcome-content';
1413
import * as TD from '~/layouts/default/takeover-dialog/takeover-dialog';
1514
import * as LSN from '~/layouts/default/lower-sticky-note/lower-sticky-note';
1615
import * as DH from '~/helpers/use-document-head';
@@ -89,7 +88,6 @@ describe('shell', () => {
8988
jest.spyOn(LDH, 'default').mockReturnValue(<></>);
9089
jest.spyOn(MM, 'default').mockReturnValue(<></>);
9190
jest.spyOn(MSP, 'default').mockReturnValue(null);
92-
jest.spyOn(WC, 'default').mockReturnValue(null);
9391
jest.spyOn(TD, 'default').mockReturnValue(null);
9492
jest.spyOn(LSN, 'default').mockReturnValue(null);
9593
jest.spyOn(DH, 'setPageDescription').mockReturnValue(undefined);

test/src/contexts/layout.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jest.useFakeTimers();
5959
jest.mock('~/layouts/default/microsurvey-popup/microsurvey-popup', () => jest.fn());
6060
jest.mock('~/layouts/default/header/header', () => jest.fn());
6161
jest.mock('~/layouts/default/lower-sticky-note/lower-sticky-note', () => jest.fn());
62-
jest.mock('~/layouts/default/welcome/welcome', () => jest.fn());
6362
jest.mock('~/layouts/default/footer/footer', () => jest.fn());
6463
jest.mock('~/layouts/default/takeover-dialog/takeover-dialog', () => jest.fn());
6564

test/src/layouts/default/default.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import {render, screen, fireEvent} from '@testing-library/preact';
33
import userEvent from '@testing-library/user-event';
44
import {useSeenCounter, usePutAway, useStickyData} from '~/layouts/default/shared';
5-
import {MenuItem} from '~/layouts/default/header/menus/main-menu/dropdown/dropdown';
5+
// import {MenuItem} from '~/layouts/default/header/menus/main-menu/dropdown/dropdown';
66
import DefaultLayout from '~/layouts/default/default';
77
import stickyData from './data/sticky.json';
88
import fundraiserData from './data/fundraiser.json';

0 commit comments

Comments
 (0)