Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Sep 5, 2024
1 parent 23b6003 commit e42dde0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions assets/agenda/components/preview/coverage/CoverageActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,16 @@ function CoverageActionsComponent({
<ActionButton
key={action.name}
item={coverage}
className="icon-button icon-button--small icon-button--bordered icon-button--tertiary ms-auto"
action={{
...action,
action: () => {
action.action(coverage, agenda);
},
}}
variant='tertiary'
size='small'
border
plan={agenda}
isVisited={parentWatched}
disabled={parentWatched}
/>
));
Expand Down
2 changes: 0 additions & 2 deletions assets/company-reports/components/CompanyReportsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
} from '../actions';
import {gettext} from 'utils';
import {panels} from '../utils';
import {Button} from 'components/Buttons';

import type {IProduct, ICompany} from 'interfaces';
import type {UserType} from 'company-reports/types';

Expand Down
6 changes: 3 additions & 3 deletions assets/ui/components/ContentDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface IProps {
export class ContentDivider extends React.Component<IProps> {

render() {
let classes = classNames('sd-content-divider', {
const classes = classNames('sd-content-divider', {
'sd-content-divider--horizontal': this.props.orientation === undefined,
[`sd-content-divider--${this.props.type}`]: this.props.type || this.props.type !== undefined,
[`sd-content-divider--text-${this.props.align}`]: this.props.align || this.props.align !== undefined,
Expand All @@ -29,12 +29,12 @@ export class ContentDivider extends React.Component<IProps> {

if (this.props.children) {
return (
<div className={"sd-content-divider--with-text " + classes} role="separator">
<div className={'sd-content-divider--with-text ' + classes} role="separator">
<span className="sd-content-divider__inner-text">{this.props.children}</span>
</div>
);
} else {
return <div className={classes} role="separator"></div>;
}
}
}
}

0 comments on commit e42dde0

Please sign in to comment.