Skip to content

Commit

Permalink
Lint errors to fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Apr 22, 2024
1 parent 3de0ad1 commit a57eb31
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions src/components/site/nav.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
import {NavLink as Link, useNavigate} from 'react-router-dom'
import {NavLink as Link} from 'react-router-dom'
import {DbSessionContext} from 'contexts/db-session'
import CommandMenu from 'components/site/command-menu'
import createCommands from 'utils/commands'

export default function Nav(props) {
const navigate = useNavigate()

export default function Nav() {
return (
<DbSessionContext.Consumer>
{({session, setUserChannel, userChannel, userChannels}) => {
const commands = createCommands({isSignedIn: session, navigate, userChannel})

/* const handleChannelChanged = ({target: {name, value: selectedChannelSlug}}) => {
const selectedChannel = userChannels.find((channel) => {
return channel.slug === selectedChannelSlug
})
setUserChannel(selectedChannel)
navigate(`/${selectedChannelSlug}/`)
} */

{({session, userChannels}) => {
return (
<>
{/* <CommandMenu commands={commands}></CommandMenu> */}
<menu>
<li>
<Link to="/">Radio4000 migration (v1 → v2)</Link>
Expand All @@ -30,18 +15,6 @@ export default function Nav(props) {
<>
{/* <Link to="/account">Account</Link> */}
{/* <Link to="/channels" end>Channels</Link> */}
{userChannels?.length ? (
<>
{/*}
<SelectUserChannel
userChannel={userChannel}
userChannels={userChannels}
onChange={handleChannelChanged}
/>
*/}
{/* <Link to="/create/track">+track</Link> */}
</>
) : null}
</>
)}
</li>
Expand Down

0 comments on commit a57eb31

Please sign in to comment.