Skip to content

Commit

Permalink
43 Hydration Error Bug (#61)
Browse files Browse the repository at this point in the history
* fix broken build

* revert to react 17
  • Loading branch information
frinzekt authored Aug 19, 2022
1 parent 8ca715c commit 976adaa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
1 change: 0 additions & 1 deletion frontend/components/Reviewer/OngoingReviewsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const OngoingReviewsList = ({ showArchived }: ReviewsListProps): JSX.Element =>

useEffect(() => {
const loadedReviews = getCourseEvaluations();
const reviewPro

setReviews(loadedReviews);
}, [])
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"axios": "^0.27.2",
"formik": "^2.2.9",
"next": "12.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hotjar": "^5.0.0",
"swr": "^1.3.0",
"yup": "^0.32.11"
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/reviewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import BodyCard from '../components/utils/BodyCard'

import { Card, Button } from '@mui/material';

import OngoingReviewsList from '../components/Reviewer/OngoingReviewsList.tsx'
import OngoingReviewsList from '../components/Reviewer/OngoingReviewsList'


const Reviewer: NextPage = () => {

const [showArchived, setShowArchived] = useState(false);
const archivedButtonText = showArchived ? "Hide Archived" : "Show Archvied";
const toggleArchived = (e) => setShowArchived(!showArchived);
const toggleArchived = (e:any) => setShowArchived(!showArchived);

return (
<div className={styles.container}>
Expand Down
29 changes: 16 additions & 13 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4909,13 +4909,14 @@ queue-microtask@^1.2.2:
resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==

react-dom@18.2.0:
version "18.2.0"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz"
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
react-dom@^17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"
integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==
dependencies:
loose-envify "^1.1.0"
scheduler "^0.23.0"
object-assign "^4.1.1"
scheduler "^0.20.2"

react-error-boundary@^3.1.0:
version "3.1.4"
Expand Down Expand Up @@ -4959,12 +4960,13 @@ react-transition-group@^4.4.2:
loose-envify "^1.4.0"
prop-types "^15.6.2"

react@18.2.0:
version "18.2.0"
resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz"
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
react@^17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

readable-stream@^3.4.0:
version "3.6.0"
Expand Down Expand Up @@ -5139,12 +5141,13 @@ saxes@^5.0.1:
dependencies:
xmlchars "^2.2.0"

scheduler@^0.23.0:
version "0.23.0"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz"
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
scheduler@^0.20.2:
version "0.20.2"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91"
integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

semver@^6.0.0, semver@^6.3.0:
version "6.3.0"
Expand Down

0 comments on commit 976adaa

Please sign in to comment.