Skip to content

Commit

Permalink
fix: make js less modern.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Oct 11, 2024
1 parent 9654fb7 commit eec4c5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
12 changes: 2 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/Form/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Input extends Component {

return (
<div>
<div className={`c-field c-field--text c-field--md c-field--radius-md ${[...(props?.classNames ?? [])].join(' ')} ${(props.icon || props.icon_suffix) ? 'c-field--icon' : ''}`}>
<div className={`c-field c-field--text c-field--md c-field--radius-md ${[...(props.classNames || [])].join(' ')} ${(props.icon || props.icon_suffix) ? 'c-field--icon' : ''}`}>
{props.label && (
<label htmlFor={props.id || props.name} className="c-field__label">
{props.label}{' '}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Pagination extends Component {
className="c-pagination__link"
size="small"
>
<span className="u-sr__only">{langPrev ?? "Previous page"}</span>
<span className="u-sr__only">{langPrev || "Previous page"}</span>
<i className="c-icon c-icon--size-sm material-icons" translate="no" aria-hidden="true">
chevron_left
</i>
Expand Down Expand Up @@ -106,7 +106,7 @@ class Pagination extends Component {
className="c-pagination__link"
size="small"
>
<span className="u-sr__only">{langGoToPage ?? "Go to page: "} </span>{page}
<span className="u-sr__only">{langGoToPage || "Go to page: "} </span>{page}
</Button>
</li>
))}
Expand Down Expand Up @@ -142,7 +142,7 @@ class Pagination extends Component {
className="c-pagination__link"
size="small"
>
<span className="u-sr__only">{langNext ?? "Next page"}</span>
<span className="u-sr__only">{langNext || "Next page"}</span>
<i className="c-icon c-icon--size-sm material-icons" translate="no" aria-hidden="true">
chevron_right
</i>
Expand Down

0 comments on commit eec4c5d

Please sign in to comment.