File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,16 @@ export default function Header({ auth }: HeaderProps) {
9999
100100 { /* Mobile new review button and burger button */ }
101101 < div className = "justify-right mr-2 flex flex-shrink grid-cols-2 items-center gap-2 md:hidden" >
102- < Link href = "/review-form" >
103- < Button className = "h-9 rounded-lg border-none border-cooper-yellow-500 bg-cooper-yellow-500 px-3 py-2 text-sm font-semibold text-white hover:border-cooper-yellow-700 hover:bg-cooper-yellow-700" >
104- < span className = "translate-y-[-2px] text-2xl md:hidden" > +</ span >
105- < span className = "hidden md:inline" > + ADD REVIEW</ span >
106- </ Button >
107- </ Link >
102+ { session . data ? (
103+ < Link href = "/review-form" >
104+ < Button className = "h-9 rounded-lg border-none border-cooper-yellow-500 bg-cooper-yellow-500 px-3 py-2 text-sm font-semibold text-white hover:border-cooper-yellow-700 hover:bg-cooper-yellow-700" >
105+ < span className = "translate-y-[-2px] text-2xl md:hidden" > +</ span >
106+ </ Button >
107+ </ Link >
108+ ) : (
109+ auth
110+ ) }
111+
108112 < Button
109113 type = "button"
110114 variant = "ghost"
You can’t perform that action at this time.
0 commit comments