Skip to content

Commit

Permalink
prettier and revert '>' in single text element
Browse files Browse the repository at this point in the history
  • Loading branch information
thoniTUB committed Nov 29, 2024
1 parent 94cbd57 commit 04fb322
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
15 changes: 12 additions & 3 deletions frontend/src/js/scrollable-list/ScrollableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface PropsType {
items: ReactNode[];
maxVisibleItems: number;
fullWidth?: boolean;
dataTestId?: string
dataTestId?: string;
}

// With the number of visible items specified here,
Expand Down Expand Up @@ -44,7 +44,12 @@ const Item = styled("div")`
font-size: ${({ theme }) => theme.font.sm};
`;

const ScrollableList = ({ items, maxVisibleItems, fullWidth, dataTestId }: PropsType) => {
const ScrollableList = ({
items,
maxVisibleItems,
fullWidth,
dataTestId,
}: PropsType) => {
const renderItem = (index: number, key: string | number) => {
return (
<Item key={key} className="scrollable-list-item">
Expand All @@ -54,7 +59,11 @@ const ScrollableList = ({ items, maxVisibleItems, fullWidth, dataTestId }: Props
};

return (
<Root maxVisibleItems={maxVisibleItems} fullWidth={!!fullWidth} data-test-id={dataTestId}>
<Root
maxVisibleItems={maxVisibleItems}
fullWidth={!!fullWidth}
data-test-id={dataTestId}
>
<ReactList
itemRenderer={renderItem}
length={items ? items.length : 0}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/js/ui-components/InputSelect/InputSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const InputSelect = ({
<DropdownToggleButton
disabled={disabled}
icon={faChevronDown}
data-test-id="selection-dropdown"
data-test-id="selection-dropdown"
{...getToggleButtonProps()}
/>
</Control>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,11 @@ const UploadConceptListModal = ({
);

return (
<Modal onClose={onClose} headline={t("uploadConceptListModal.headline")} dataTestId="uploadConceptListModal">
<Modal
onClose={onClose}
headline={t("uploadConceptListModal.headline")}
dataTestId="uploadConceptListModal"
>
<Root>
<SxInputSelect
label={t("uploadConceptListModal.selectConceptRootNode")}
Expand Down

0 comments on commit 04fb322

Please sign in to comment.