File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const capitalizeTitle = (str) => {
1212 . join ( ' ' ) ;
1313} ;
1414
15- const BASE_URL = "http://127.0.0.1 :8000" ;
15+ const BASE_URL = "http://13.38.84.88 :8000" ;
1616export default function getProfilePictureUrl ( path ) {
1717 if ( ! path ) return null ;
1818 return `${ BASE_URL } /storage/${ path } ` ;
Original file line number Diff line number Diff line change 11import React , { useContext } from "react" ;
22import { Navigate } from "react-router-dom" ;
33import { AuthContext } from "../Context/AuthorizationContext" ;
4+ import Loading from "../Loading" ;
45
56const PrivateRoute = ( { children } ) => {
67 const { user, authLoading } = useContext ( AuthContext ) ;
78
8- if ( authLoading ) return < div > Loading... </ div > ;
9+ if ( authLoading ) return < Loading / >;
910
1011 return user ? children : < Navigate to = "/login" replace /> ;
1112} ;
You can’t perform that action at this time.
0 commit comments