File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ export function Header (){
10
10
< Container >
11
11
< div className = "talkd-menu p-2 rounded-md" >
12
12
< ul className = "flex flex-col md:flex-row items-center gap-3" >
13
- < MenuItem name = "Home" isSelected />
13
+ < MenuItem name = "Home" isSelected />
14
14
{ /* <MenuItem name="Pricing"/> */ }
15
- < MenuItem name = "About" />
15
+ < MenuItem name = "About" isNotSelected />
16
16
</ ul >
17
17
</ div >
18
18
</ Container >
Original file line number Diff line number Diff line change 1
1
type Props = {
2
2
name : string ;
3
- isSelected : boolean ;
4
- onClick : ( ) => void ;
3
+ isSelected ?: boolean ;
4
+ isNotSelected ?: boolean ;
5
+ onClick ?: ( ) => void ;
5
6
}
6
7
7
- export function MenuItem ( { name, isSelected, onClick} : Props ) {
8
+ export function MenuItem ( { name, isSelected, isNotSelected , onClick} : Props ) {
8
9
return (
9
10
// <button className="flex items-center gap-3">
10
11
< li className = "flex menu-item" >
11
12
< button className = "flex items-center gap-2 pl-2" onClick = { onClick } >
12
13
< span
13
- className = { `font-semibold ${ isSelected ? 'text-primary-purple' : 'text-white' } ` }
14
+ className = { `font-semibold ${ isSelected ? 'text-primary-purple' : isNotSelected ? 'text-white' : ' '} ` }
14
15
style = { { marginRight : 4 } }
15
16
> { name } </ span >
16
17
< svg xmlns = "http://www.w3.org/2000/svg" width = "25" height = "24" viewBox = "0 0 25 24" fill = "none" >
You can’t perform that action at this time.
0 commit comments