feat(SW-322): remove divs
This commit is contained in:
@@ -8,9 +8,10 @@ import type { ShortcutsListItemsProps } from "@/types/components/blocks/shortcut
|
||||
|
||||
export default function ShortcutsListItems({
|
||||
shortcutsListItems,
|
||||
className,
|
||||
}: ShortcutsListItemsProps) {
|
||||
return (
|
||||
<ul>
|
||||
<ul className={className}>
|
||||
{shortcutsListItems.map((shortcut) => (
|
||||
<li key={shortcut.title} className={styles.listItem}>
|
||||
<Link
|
||||
|
||||
@@ -34,12 +34,14 @@ export default function ShortcutsList({
|
||||
<SectionContainer>
|
||||
<SectionHeader preamble={subtitle} title={title} topTitle={firstItem} />
|
||||
<section className={classNames.section}>
|
||||
<div className={classNames.leftColumn}>
|
||||
<ShortcutsListItems shortcutsListItems={leftColumn} />
|
||||
</div>
|
||||
<div className={classNames.rightColumn}>
|
||||
<ShortcutsListItems shortcutsListItems={rightColumn} />
|
||||
</div>
|
||||
<ShortcutsListItems
|
||||
shortcutsListItems={leftColumn}
|
||||
className={styles.leftColumn}
|
||||
/>
|
||||
<ShortcutsListItems
|
||||
shortcutsListItems={rightColumn}
|
||||
className={styles.rightColumn}
|
||||
/>
|
||||
</section>
|
||||
</SectionContainer>
|
||||
)
|
||||
|
||||
@@ -5,5 +5,6 @@ export interface ShortcutsListProps extends Shortcut {
|
||||
}
|
||||
|
||||
export type ShortcutsListItemsProps = {
|
||||
className?: string
|
||||
shortcutsListItems: ShortcutsListProps["shortcuts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user