Skip to content

Commit

Permalink
chore: Fix error console logs observed (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
escobarjonatan authored Jul 30, 2024
1 parent d0a9e3d commit c956709
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apps/studio/src/pages/home/library/SongList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ export default function SongList({ totalCountOfSongs, query }: SongListProps) {
return song.id === playerState.currentPlayingSongId;
});

if (!isSongFound) {
if (!isSongFound && !isLoading) {
stopSong();
}
}, [playerState.currentPlayingSongId, songData, stopSong]);
}, [playerState.currentPlayingSongId, songData, stopSong, isLoading]);

// sets the # of rows per page depending on viewport height
useEffect(() => {
Expand Down
5 changes: 4 additions & 1 deletion packages/elements/src/lib/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ export const TextInput: ForwardRefRenderFunction<
fontWeight={ 500 }
>
<>
<Typography sx={ { fontWeight: 500, textTransform: "uppercase" } }>
<Typography
component="span"
sx={ { fontWeight: 500, textTransform: "uppercase" } }
>
{ label }
</Typography>

Expand Down
3 changes: 2 additions & 1 deletion packages/elements/src/lib/form/CopyrightInputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const CopyrightInputField: ForwardRefRenderFunction<HTMLDivElement, Props> = (
<Stack direction="column" ref={ ref } spacing={ 1 }>
<Stack direction="row" justifyContent="space-between">
<Typography
component="div"
sx={ {
color: theme.colors.grey100,
fontWeight: 500,
Expand All @@ -58,7 +59,7 @@ const CopyrightInputField: ForwardRefRenderFunction<HTMLDivElement, Props> = (
} }
>
<Stack direction="row" spacing="4px">
<Box>{ label }</Box>
<Box component="label">{ label }</Box>

{ !!tooltipText && (
<Tooltip title={ tooltipText }>
Expand Down
12 changes: 6 additions & 6 deletions packages/elements/src/lib/form/FormProgressStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Box, Typography, styled } from "@mui/material";
import theme from "@newm-web/theme";

interface StepBoxProps {
readonly boxColor: string;
readonly boxTitle: string;
readonly boxcolor: string;
readonly boxtitle: string;
}

interface FormStepperGridProps {
Expand All @@ -27,9 +27,9 @@ const statusColor = (activeStep: number, currentIndex: number) => {

const StepBox = styled(Box)<StepBoxProps>`
flex-grow: 1;
color: ${(props) => props.boxColor};
color: ${(props) => props.boxcolor};
background-color: ${theme.colors.grey700};
border-bottom: 3px solid ${(props) => props.boxColor};
border-bottom: 3px solid ${(props) => props.boxcolor};
min-height: 60px;
min-width: 232px;
display: flex;
Expand Down Expand Up @@ -78,8 +78,8 @@ const FormProgressStepper = ({

return (
<StepBox
boxColor={ stepColor }
boxTitle={ stepTitle }
boxcolor={ stepColor }
boxtitle={ stepTitle }
justifyContent={ ["center", "center", "flex-start"] }
key={ index }
>
Expand Down

0 comments on commit c956709

Please sign in to comment.