Skip to content

Commit

Permalink
Actually pass tier to API
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbe-j committed Nov 12, 2023
1 parent b56afb4 commit 7211f38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dance-app/src/Recording.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
height: 100dvh;
}
.video-container > video {
height: 100%;
width: 100%;
}

.hide {
Expand Down
5 changes: 3 additions & 2 deletions dance-app/src/sections/recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const options = {

interface RecordingPageProps {
refVideo: RefVideo | undefined;
tier: number
pb: Pocketbase;
goBack: (tier: Tier | null) => void;
}

const RecordingPage = ({ refVideo, pb, goBack }: RecordingPageProps) => {
const RecordingPage = ({ refVideo, tier, pb, goBack }: RecordingPageProps) => {
const theme = useTheme();
const classes = useStyles(theme);

Expand Down Expand Up @@ -139,7 +140,7 @@ const RecordingPage = ({ refVideo, pb, goBack }: RecordingPageProps) => {
</div>
<footer className="footer">
{recordingRef.current && hasRecording && page === "home" ? (
<Submit tier={1} video={recordingRef.current} pb={pb} />
<Submit tier={tier} video={recordingRef.current} pb={pb} />
) : null}
</footer>
</div>
Expand Down

0 comments on commit 7211f38

Please sign in to comment.