feat(SW-322): remove divs

This commit is contained in:
Fredrik Thorsson
2024-10-11 15:07:48 +02:00
parent 765c934307
commit aace50fb37
3 changed files with 11 additions and 7 deletions

View File

@@ -8,9 +8,10 @@ import type { ShortcutsListItemsProps } from "@/types/components/blocks/shortcut
export default function ShortcutsListItems({ export default function ShortcutsListItems({
shortcutsListItems, shortcutsListItems,
className,
}: ShortcutsListItemsProps) { }: ShortcutsListItemsProps) {
return ( return (
<ul> <ul className={className}>
{shortcutsListItems.map((shortcut) => ( {shortcutsListItems.map((shortcut) => (
<li key={shortcut.title} className={styles.listItem}> <li key={shortcut.title} className={styles.listItem}>
<Link <Link

View File

@@ -34,12 +34,14 @@ export default function ShortcutsList({
<SectionContainer> <SectionContainer>
<SectionHeader preamble={subtitle} title={title} topTitle={firstItem} /> <SectionHeader preamble={subtitle} title={title} topTitle={firstItem} />
<section className={classNames.section}> <section className={classNames.section}>
<div className={classNames.leftColumn}> <ShortcutsListItems
<ShortcutsListItems shortcutsListItems={leftColumn} /> shortcutsListItems={leftColumn}
</div> className={styles.leftColumn}
<div className={classNames.rightColumn}> />
<ShortcutsListItems shortcutsListItems={rightColumn} /> <ShortcutsListItems
</div> shortcutsListItems={rightColumn}
className={styles.rightColumn}
/>
</section> </section>
</SectionContainer> </SectionContainer>
) )

View File

@@ -5,5 +5,6 @@ export interface ShortcutsListProps extends Shortcut {
} }
export type ShortcutsListItemsProps = { export type ShortcutsListItemsProps = {
className?: string
shortcutsListItems: ShortcutsListProps["shortcuts"] shortcutsListItems: ShortcutsListProps["shortcuts"]
} }