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({
|
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
|
||||||
|
|||||||
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,5 +5,6 @@ export interface ShortcutsListProps extends Shortcut {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type ShortcutsListItemsProps = {
|
export type ShortcutsListItemsProps = {
|
||||||
|
className?: string
|
||||||
shortcutsListItems: ShortcutsListProps["shortcuts"]
|
shortcutsListItems: ShortcutsListProps["shortcuts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user