-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up routing for judging #78
Conversation
Visit the preview URL for this PR (updated for commit 2f61de1): https://nwplus-ubc--pr78-judging-routing-1wndjvts.web.app (expires Fri, 13 Nov 2020 03:09:24 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
src/components/Page.js
Outdated
const [isJudgingEnabled, setIsJudgingEnabled] = useState(false) | ||
|
||
useEffect(() => { | ||
const unsubscribe = isJudgingOpen(setIsJudgingEnabled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the name change from isJudgingOpen to isJudgingDisabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk its overlapping with the firebase utility function name
src/components/Page.js
Outdated
import styled from 'styled-components' | ||
import Sidebar from './Sidebar' | ||
import MobileMenuBar from './MobileMenuBar' | ||
import { isJudgingOpen } from '../utility/firebase' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatively, we can do import as here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧼
Closes #62
Creates new routes
/judging
/judging/view/:id
/judging/done
Only includes JUDGING in sidebar when judging is open