chore: fix component naming
This commit is contained in:
@@ -35,7 +35,7 @@ interface ProtectedRouteProps {
|
|||||||
*
|
*
|
||||||
* @returns JSX.Element
|
* @returns JSX.Element
|
||||||
*/
|
*/
|
||||||
export const PublicRoute = ({
|
export const ProtectedRoute = ({
|
||||||
roles = [],
|
roles = [],
|
||||||
}: ProtectedRouteProps): React.JSX.Element => {
|
}: ProtectedRouteProps): React.JSX.Element => {
|
||||||
const { data, isLoading, error, fetchCurrentUser } = useFetchCurrentUser();
|
const { data, isLoading, error, fetchCurrentUser } = useFetchCurrentUser();
|
||||||
|
|||||||
Reference in New Issue
Block a user