Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marnym committed Nov 11, 2023
1 parent e59627f commit aa27f92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
13 changes: 6 additions & 7 deletions dance-app/src/components/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import { Box, Button, useTheme } from "@mui/material";
import { FC } from "react";
import "../Drawer.css";
import { makeStyles } from "@mui/styles";
import { Pages } from "../context/PageContext";

interface DrawerProps {
view: Pages;
setView: (view: Pages) => void;
}

const useStyles = makeStyles(() => ({
box: {
position: "absolute",
Expand All @@ -33,7 +27,12 @@ const useStyles = makeStyles(() => ({
},
}));

const Drawer: FC<DrawerProps> = ({ view, setView }) => {
type DrawerProps = {
view: Pages;
setView: (view: Pages) => void;
};

const Drawer = ({ view, setView }: DrawerProps) => {
const theme = useTheme();
const classes = useStyles(theme);

Expand Down
7 changes: 3 additions & 4 deletions dance-app/src/sections/recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { Recording } from "react-record-webcam/dist/useRecording";
import Leaderboard from "../components/Leaderboard";
import Submit from "../Submit";
import "../Recording.css";
import { RefVideo, Tier } from "./landing";
import Pocketbase from "pocketbase";
import { PageContext } from "../context/PageContext";
import { Button, Typography, useTheme } from "@mui/material";
import { makeStyles } from "@mui/styles";
import { RefVideo, Tier } from "./home";

const useStyles = makeStyles(() => ({
backButton: {
Expand Down Expand Up @@ -92,8 +92,7 @@ const RecordingPage = ({ refVideo, pb, goBack }: RecordingPageProps) => {
<Button className={classes.backButton} onClick={() => goBack(null)}>
Back
</Button>
<div className="record-button"
>
<div className="record-button">
<Button
onClick={recordingRef.current ? record : initCamera}
variant="outlined"
Expand Down Expand Up @@ -136,7 +135,7 @@ const RecordingPage = ({ refVideo, pb, goBack }: RecordingPageProps) => {
</div>
</div>
<div className="view leaderboard-view">
<Leaderboard pb={pb} />
<Leaderboard />
</div>
<footer className="footer">
{recordingRef.current && hasRecording && page === "home" ? (
Expand Down

0 comments on commit aa27f92

Please sign in to comment.