Skip to content

Commit

Permalink
Move the .tsx files in /components/layout and /components/modal folde…
Browse files Browse the repository at this point in the history
…rs into /_component folders within /app
  • Loading branch information
hokwaichan committed May 30, 2024
1 parent 93302f4 commit 507c8ca
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getCurrentUser } from '@/access/AuthenticationService';
import MobileNavbar from './MobileNavbar';
import { NavLinks } from './NavLinks';
import Role from '@/access/Role';
import TimeoutModal from '@/components/modal/TimeoutModal';
import TimeoutModal from '@/app/_components/layout/modal/TimeoutModal';

const Navbar = async () => {
const currentUser = await getCurrentUser();
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import './globals.css';
import { Source_Sans_3 } from 'next/font/google';
import Footer from '@/components/layout/footer/Footer';
import Footer from '@/app/_components/layout/footer/Footer';
import type { Metadata } from 'next';
import Navbar from '@/components/layout/navbar/Navbar';
import Navbar from '@/app/_components/layout/navbar/Navbar';

const sourceSans3 = Source_Sans_3({
subsets: ['latin'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import Footer from '@/components/layout/footer/Footer';
import Footer from '@/app/_components/layout/footer/Footer';

describe ('Footer', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Role from '@/access/Role';
import User from '@/access/User';
import TimeoutModal from '@/components/modal/TimeoutModal';
import TimeoutModal from '@/app/_components/layout/modal/TimeoutModal';
import { act, fireEvent, render, screen } from '@testing-library/react';
import * as AuthenticationService from '@/access/AuthenticationService';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import Login from '@/components/layout/navbar/LoginButton';
import Login from '@/app/_components/layout/navbar/LoginButton';
import { redirect } from 'next/navigation';
import User, { AnonymousUser } from '@/access/User';
import Role from '@/access/Role';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Role from '@/access/Role';
import User, { AnonymousUser } from '@/access/User';
import MobileNavbar from '@/components/layout/navbar/MobileNavbar';
import MobileNavbar from '@/app/_components/layout/navbar/MobileNavbar';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import User, { AnonymousUser } from '@/access/User';
import * as AuthenticationService from '@/access/AuthenticationService';
import { render, screen } from '@testing-library/react';
import Navbar from '@/components/layout/navbar/Navbar';
import Navbar from '@/app/_components/layout/navbar/Navbar';
import Role from '@/access/Role';

const testUser: User = JSON.parse(process.env.TEST_USER_A as string);
Expand Down

0 comments on commit 507c8ca

Please sign in to comment.