File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/components/content-presentation/summary-list/components Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,20 @@ import classNames from 'classnames';
22import { type ComponentPropsWithoutRef , type FC } from 'react' ;
33
44export 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 ) }
You can’t perform that action at this time.
0 commit comments