Skip to content

Commit

Permalink
Removed invalid role
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobArrow committed Dec 27, 2023
1 parent 7ff6955 commit 33ce86e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/apps/loan-list/list/ListHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const ListHeader: FC<ListHeaderProps> = ({ header, amount, children }) => {
<div className="dpl-list-buttons">
<h2 className="dpl-list-buttons__header">
{header}
<span role="text" className="dpl-list-buttons__power">
{amount}
</span>
<span className="dpl-list-buttons__power">{amount}</span>
</h2>
<div className="dpl-list-buttons__buttons">{children}</div>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/apps/reservation-list/list/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ const List: FC<ListProps> = ({
<h2 className="dpl-list-buttons__header">
<>
{header}
<span role="text" className="dpl-list-buttons__power">
0
</span>
<span className="dpl-list-buttons__power">0</span>
</>
</h2>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/components/list-header/list-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const ListHeader: FC<ListHeaderProps> = ({
<h2 data-cy={dataCy} className="dpl-list-buttons__header">
{header}
{amount !== null && (
<span role="text" className="dpl-list-buttons__power">
{amount}
</span>
<span className="dpl-list-buttons__power">{amount}</span>
)}
</h2>
<div className="dpl-list-buttons__buttons">{children}</div>
Expand Down

0 comments on commit 33ce86e

Please sign in to comment.