Skip to content

Commit

Permalink
chore: Aria label neatening
Browse files Browse the repository at this point in the history
Neatened up instantiation of aria label within FormattedMessage
  • Loading branch information
EthanFreestone committed Mar 22, 2024
1 parent afe8198 commit 778e853
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/views/JobForm/JobForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ const JobForm = (props) => {
return (
<PaneMenu>
<FormattedMessage id="ui-local-kb-admin.job.close">
{ariaLabel => (
{([ariaLabel]) => (
<IconButton
aria-label={ariaLabel?.[0]}
aria-label={ariaLabel}
icon="times"
id="close-job-form-button"
onClick={onClose}
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/Jobs/Jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ const Jobs = ({
{/* TODO: Use forthcoming <SearchGroup> or similar component */}
<div className={css.searchGroupWrap}>
<FormattedMessage id="ui-local-kb-admin.searchInputLabel">
{ariaLabel => (
{([ariaLabel]) => (
<SearchField
aria-label={ariaLabel?.[0]}
aria-label={ariaLabel}
autoFocus
className={css.searchField}
data-test-local-kb-admin-search-input
Expand Down

0 comments on commit 778e853

Please sign in to comment.