Skip to content

Commit

Permalink
Update frontend project structure (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Sigrid Elnan <[email protected]>
  • Loading branch information
sigridge and sigridge authored Oct 9, 2023
1 parent 2801e0b commit ed4da4f
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 8 deletions.
File renamed without changes.
File renamed without changes
1 change: 0 additions & 1 deletion frontend/public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion frontend/public/vercel.svg

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Head from 'next/head';
import AppProviders from './components/AppProviders';
import AppProviders from '../components/AppProviders';

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VariantList } from "./variants";
import { VariantList } from "../components/variants";

export default function Page() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { EventType } from "@azure/msal-browser";
import { MsalProvider } from "@azure/msal-react";
import { CssBaseline } from "@mui/material";
import { QueryClient, QueryClientProvider } from "react-query";
import { msalInstance } from "../msalInstance";
import { msalInstance } from "../utils/msalInstance";
import PageLayout from "./PageLayout";
import ThemeRegistry from "./ThemeRegistry/ThemeRegistry";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function VibesAppBar() {
<Tab key={"Bemanning"} value={1} label={"Bemanning"} sx={{ fontSize: "1.2rem" }} />
</VibesNavBarTabs>
<Box component="div" sx={{ flexGrow: 1 }}></Box>
<Image className="variant-logo" alt="Variant logo" src="./variant-logo-1.svg" width="65" height="16" />
<Image className="variant-logo" alt="Variant logo" src="./images/variant-logo-1.svg" width="65" height="16" />
<Box component="div" sx={{ flexGrow: 0, minWidth: "1px", height: "50%", backgroundColor: "grey" }} ml={2}></Box>
<SignInSignOutButton />
</Toolbar>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
FormControlLabel,
FormGroup,
} from "@mui/material";
import useVibesApi from "./hooks/useVibesApi";
import useVibesApi from "../hooks/useVibesApi";
import React, { useState } from "react";

export function VariantList() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion frontend/src/utils/ApiUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { msalInstance } from "@/app/msalInstance";
import { msalInstance } from "@/utils/msalInstance";
import { loginRequest } from "@/authConfig";

export async function fetchWithToken(path: string) {
Expand Down
File renamed without changes.

0 comments on commit ed4da4f

Please sign in to comment.