Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
Signed-off-by: liuxsh9 <[email protected]>
  • Loading branch information
liuxsh9 committed Jun 24, 2024
1 parent 225af33 commit 575f8cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard/client/src/components/SearchComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export const SearchSelect = ({
width: 100,
},
}}
defaultValue={defaultValue}
defaultValue={defaultValue || ""}
>
{showAllOption ?? <MenuItem value="">All</MenuItem>}
{showAllOption ? <MenuItem value="">All</MenuItem> : null}
{options.map((e) =>
typeof e === "string" ? (
<MenuItem key={e} value={e}>
Expand Down
2 changes: 1 addition & 1 deletion dashboard/client/src/components/StatusChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const StatusChipRoot = styled("span")(({ theme }) => ({
alignItems: "center",
}));

const StyledSpan = styled("span")();
const StyledSpan = styled("span")("");
const AfterIconSpan = styled("span")(({ theme }) => ({
marginLeft: 4,
}));
Expand Down
2 changes: 1 addition & 1 deletion dashboard/client/src/components/TitleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TitleDiv = styled("div")(({ theme }) => ({
marginBottom: theme.spacing(1),
}));

const BodyDiv = styled("div")();
const BodyDiv = styled("div")("");

const TitleCard = ({
title,
Expand Down

0 comments on commit 575f8cb

Please sign in to comment.