File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Components/Profile/UserProfile Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { getOptions } from "../../../options"
7
7
import ProfileHeaderDetails from "./ProfileHeader/ProfileHeadeDetails"
8
8
import ProfileHeader from "./ProfileHeader/ProfileHeader"
9
9
import ReactLoading from 'react-loading' ;
10
+ import RequireAuth from "../../../Protected/RequireAuth"
10
11
11
12
12
13
function VisitProfile ( ) {
@@ -26,7 +27,8 @@ function VisitProfile() {
26
27
} , [ userId , user ] )
27
28
if ( currentUser ) {
28
29
return (
29
- < div className = " mx-auto w-[496px]" >
30
+
31
+ < RequireAuth > < div className = " mx-auto w-[496px]" >
30
32
{ ! loading ? < div className = "w-full " >
31
33
< ProfileHeader user = { currentUser } />
32
34
< ProfileHeaderDetails visit = { true } user = { currentUser } />
@@ -37,7 +39,8 @@ function VisitProfile() {
37
39
height = { 40 }
38
40
width = { 40 }
39
41
/> </ div > }
40
- </ div >
42
+ </ div > </ RequireAuth >
43
+
41
44
)
42
45
} }
43
46
You can’t perform that action at this time.
0 commit comments