Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Sep 17, 2024
1 parent 31acec2 commit 58133d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export function SortableListItem(props: SortableListItemProps): React.ReactNode
<Header {...props} />
</div>
)}
<div className={resolveClassNames("bg-white border-b shadow")}>{props.children}</div>
{props.children !== undefined && (
<div className={resolveClassNames("bg-white border-b shadow")}>{props.children}</div>
)}
</div>
{isHovered && sortableListContext.hoveredArea === HoveredArea.BOTTOM && <SortableListDropIndicator />}
</>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/modules/MyModule2/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ export function Settings(): React.ReactNode {
);

function makeChildren(items: Item[]): React.ReactElement[] {
return items.map((item) => {
return items.map((item, idx) => {
if (item.type === "item") {
return (
<SortableListItem key={item.id} title={item.title} id={item.id}>
{item.title}
{idx % 2 === 0 ? item.title : undefined}
</SortableListItem>
);
} else {
Expand Down

0 comments on commit 58133d1

Please sign in to comment.