mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-01 12:03:06 +00:00
refactor(B136): inline grid layout data-attribute guard
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
parent
2f2c8563a5
commit
479e08dbd0
1 changed files with 1 additions and 3 deletions
|
|
@ -133,8 +133,6 @@ export const CampaignHomeActionStrip = ({
|
||||||
onClickCapture,
|
onClickCapture,
|
||||||
}
|
}
|
||||||
|
|
||||||
const isGridLikeLayout = isGridLayout || !isStripLayout
|
|
||||||
|
|
||||||
const listClassName = cn(
|
const listClassName = cn(
|
||||||
'm-0 list-none p-0',
|
'm-0 list-none p-0',
|
||||||
isStripLayout
|
isStripLayout
|
||||||
|
|
@ -165,7 +163,7 @@ export const CampaignHomeActionStrip = ({
|
||||||
<ul
|
<ul
|
||||||
role="list"
|
role="list"
|
||||||
className={listClassName}
|
className={listClassName}
|
||||||
data-layout={isGridLikeLayout ? 'grid-3' : undefined}
|
data-layout={!isStripLayout ? 'grid-3' : undefined}
|
||||||
>
|
>
|
||||||
{actions?.map(({ id, ...button }) => (
|
{actions?.map(({ id, ...button }) => (
|
||||||
<li key={id ?? button.href ?? button.label} className="m-0 min-w-0 list-none p-0">
|
<li key={id ?? button.href ?? button.label} className="m-0 min-w-0 list-none p-0">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue