Skip to content

Commit

Permalink
Fix unexported type
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jan 28, 2025
1 parent 3c3bc51 commit f158ea3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions ui/src/components/Bouts/BoutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function BoutPage({
targetAudioCategory ?? bout?.category,
);

const timeBuffer = 5; // minutes
const timeBuffer = 15; // minutes
const targetTimePlusBuffer = roundToNearestMinutes(
min([targetTime, addMinutes(targetTime, timeBuffer)]),
{ roundingMethod: "ceil" },
Expand Down Expand Up @@ -415,7 +415,13 @@ export default function BoutPage({
sx={{ width: "100%" }}
{...(boutForm.errors.audioCategory ? { error: true } : {})}
>
<InputLabel sx={{ textTransform: "uppercase", fontSize: 14 }}>
<InputLabel
sx={{
textTransform: "uppercase",
fontSize: 14,
"&[data-shrink=false]": { top: "-6px" },
}}
>
Category
</InputLabel>
<Select
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Bouts/SpectrogramTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const TICKER_HEIGHT = 30;
const SPECTROGRAM_HEIGHT = 300;
const PIXEL_ZOOM_FACTOR = 50;

type SpectrogramFeedSegment = Pick<
export type SpectrogramFeedSegment = Pick<
FeedSegment,
"id" | "startTime" | "endTime" | "duration"
> & { audioImages: Pick<AudioImage, "bucket" | "objectPath">[] };
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/bouts/new/[feedSlug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AudioCategory, useFeedQuery } from "@/graphql/generated";
import type { NextPageWithLayout } from "@/pages/_app";

const NewBoutPage: NextPageWithLayout = () => {
const targetTime = new Date("2024-12-11 19:55:44.013Z");
const targetTime = new Date("2024-12-11 19:52:44.013Z");

const params = useParams<{ feedSlug?: string }>();
const feedSlug = params?.feedSlug;
Expand Down Expand Up @@ -47,8 +47,8 @@ const NewBoutPage: NextPageWithLayout = () => {

<main>
<BoutPage
feed={feed}
isNew={true}
feed={feed}
targetTime={targetTime}
targetAudioCategory={targetAudioCategory}
/>
Expand Down

0 comments on commit f158ea3

Please sign in to comment.