Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Moore committed Dec 4, 2024
1 parent e969928 commit a594b40
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions packages/components/src/Tile/TileGrid/TileGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,15 @@ export const TileGrid = ({
const tileGridBaseId = useId()

const tiles = Children.map(children, child => {
/* Is child always going to be an array? What does Children look like with only one Tile
* Are we able to type tile to make sure its not anything else?
*/
if (Array.isArray(child.props.children)) {
return child.props.children!.map(
(tile: TileElement, index) => (
<li
className={classnames(styles.li, classNameOverride)}
key={`${tileGridBaseId}-${index}`}
>
{tile}
</li>
)
)
return child.props.children!.map((tile: TileElement, index) => (
<li
className={classnames(styles.li, classNameOverride)}
key={`${tileGridBaseId}-${index}`}
>
{tile}
</li>
))
} else {
return (
<li className={classnames(styles.li, classNameOverride)}>{child}</li>
Expand Down

0 comments on commit a594b40

Please sign in to comment.