removing public decorator in api (#11)

This commit was merged in pull request #11.
This commit is contained in:
2025-03-15 08:56:27 -05:00
committed by GitHub
parent 6a3e9267f2
commit 2646e79bb7
14 changed files with 901 additions and 605 deletions

View File

@@ -37,12 +37,14 @@ const Projects = () => {
`api/projects`,
);
const projects: Project[] = response.data;
console.log(projects);
projects.sort((a, b) => Number(a.order) - Number(b.order))
return projects;
} catch (error) {
throw new Error('broken');
const axiosError = error as AxiosError;
throw new Error(axiosError.message);
}
};

View File

@@ -69,7 +69,6 @@ const SiteNav: React.FC<unknown> = () => {
return imageUrl;
} catch (error) {
console.log(error);
throw new Error();
}
};
@@ -94,7 +93,6 @@ const SiteNav: React.FC<unknown> = () => {
const accessToken: string = await getAccessToken();
const userProfile = await getUserProfile(accessToken);
const userPhoto = await getUserPhoto(accessToken);
console.log(userPhoto)
setUserPhoto(userPhoto);

View File

@@ -6,6 +6,7 @@ import { BrowserRouter } from 'react-router-dom';
import { AuthenticationResult, EventMessage, EventType, PublicClientApplication } from '@azure/msal-browser';
import { msalConfig } from './auth/msalConfig.ts';
import AppContextProvider from './context/appContext/AppContextProvider.tsx';
import './index.css';
const msalInstance: PublicClientApplication = new PublicClientApplication(msalConfig);