Skip to content

Commit

Permalink
style: update formatting based on feedback (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx committed Jan 11, 2024
1 parent 1556701 commit f44075e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {
CategoryKey,
SelectCategoryValueView,
} from "../../../../common/entities";
import { FilterMenuSearchMatch } from "../../../../components/Filter/common/entities";
import { OnFilterFn } from "../../../../hooks/useCategoryFilter";
import { SouthIcon } from "../../../common/CustomIcon/components/SouthIcon/southIcon";
import { MAX_DISPLAYABLE_LIST_ITEMS } from "../../common/constants";
import { FilterMenuSearchMatch } from "../../common/entities";
import { getSortMatchesFn } from "../../common/utils";
import { List } from "../FilterList/filterList.styles";
import { FilterMenuSearch } from "../FilterMenuSearch/filterMenuSearch";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export const MatchHighlight = styled.mark<MatchHighlightProps>`
${({ leftOpen }) =>
leftOpen &&
css`
padding-left: 2px;
margin-left: -2px;
padding-left: 2px;
`}
${({ rightOpen }) =>
rightOpen &&
css`
padding-right: 2px;
margin-right: -2px;
padding-right: 2px;
`}
`;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { FilterMenuSearchMatchRange } from "../../../../components/Filter/common/entities";
import { FilterMenuSearchMatchRange } from "../../common/entities";
import { MatchHighlight } from "./highlightedLabel.styles";

interface HighlightedLabelProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ export default function VariableSizeListItem({
/>
<ListItemText
disableTypography
primary={
<HighlightedLabel
label={label}
ranges={matchRanges}
></HighlightedLabel>
}
primary={<HighlightedLabel label={label} ranges={matchRanges} />}
secondary={
<Typography color="ink.light" variant={TEXT_BODY_SMALL_400}>
{count}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
VariableSizeListProps as ListProps,
} from "react-window";
import { CategoryKey } from "../../../../common/entities";
import { FilterMenuSearchMatch } from "../../../../components/Filter/common/entities";
import { OnFilterFn } from "../../../../hooks/useCategoryFilter";
import { useWindowResize } from "../../../../hooks/useWindowResize";
import {
Expand All @@ -14,6 +13,7 @@ import {
MAX_DISPLAYABLE_LIST_ITEMS,
MAX_LIST_HEIGHT_PX,
} from "../../common/constants";
import { FilterMenuSearchMatch } from "../../common/entities";
import { List as FilterList } from "../FilterList/filterList.styles";
import VariableSizeListItem from "../VariableSizeListItem/variableSizeListItem";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
} from "@mui/material";
import React, { CSSProperties, useEffect, useRef } from "react";
import { CategoryKey } from "../../../../common/entities";
import { FilterMenuSearchMatch } from "../../../../components/Filter/common/entities";
import { OnFilterFn } from "../../../../hooks/useCategoryFilter";
import { TEXT_BODY_SMALL_400 } from "../../../../theme/common/typography";
import { CheckedIcon } from "../../../common/CustomIcon/components/CheckedIcon/checkedIcon";
import { UncheckedIcon } from "../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
import { FilterMenuSearchMatch } from "../../common/entities";
import { HighlightedLabel } from "../HighlightedLabel/highlightedLabel";

interface Props {
Expand Down Expand Up @@ -60,12 +60,7 @@ export default function VariableSizeListItem({
/>
<ListItemText
disableTypography
primary={
<HighlightedLabel
label={label}
ranges={labelRanges}
></HighlightedLabel>
}
primary={<HighlightedLabel label={label} ranges={labelRanges} />}
secondary={
<Typography color="ink.light" variant={TEXT_BODY_SMALL_400}>
{count}
Expand Down

0 comments on commit f44075e

Please sign in to comment.