Skip to content

Commit 84ca837

Browse files
Add missing summary list row noActions prop
1 parent 311c35e commit 84ca837

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/content-presentation/summary-list/components/SummaryListRow.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@ import classNames from 'classnames';
22
import { type ComponentPropsWithoutRef, type FC } from 'react';
33

44
export interface SummaryListRowProps extends ComponentPropsWithoutRef<'div'> {
5+
noActions?: boolean;
56
noBorder?: boolean;
67
}
78

8-
export const SummaryListRow: FC<SummaryListRowProps> = ({ className, noBorder, ...rest }) => (
9+
export const SummaryListRow: FC<SummaryListRowProps> = ({
10+
className,
11+
noActions,
12+
noBorder,
13+
...rest
14+
}) => (
915
<div
1016
className={classNames(
1117
'nhsuk-summary-list__row',
18+
{ 'nhsuk-summary-list__row--no-actions': noActions },
1219
{ 'nhsuk-summary-list__row--no-border': noBorder },
1320
className,
1421
)}

0 commit comments

Comments
 (0)