Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Apr 24, 2024
1 parent 3659ff7 commit 72a4086
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions assets/agenda/components/LabelGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ interface IProps {
justify?: 'start' | 'end' | 'center'; // defaults to 'start'
align?: 'start' | 'end' | 'center'; // defaults to 'center'
children: React.ReactNode;
className?: string;
}
export class LabelGroup extends React.PureComponent<IProps> {
render() {
let classes = classNames('label-group', {
[`label-group--align-center`]: this.props.align === undefined && this.props.orientation !== 'vertical',
const classes = classNames('label-group', {
['label-group--align-center']: this.props.align === undefined && this.props.orientation !== 'vertical',
[`label-group--justify-${this.props.justify}`]: this.props.justify,
[`label-group--align-${this.props.align}`]: this.props.align,
[`label-group--vertical`]: this.props.orientation === 'vertical',
}, this.props.className);
['label-group--vertical']: this.props.orientation === 'vertical',
});

return (
<div className={classes} role='group'>
Expand Down

0 comments on commit 72a4086

Please sign in to comment.