Skip to content

Commit f6258b1

Browse files
fix: aria-label in side navbar (#334)
1 parent 7188c44 commit f6258b1

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

admin/src/components/ApproveFlow/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FC } from 'react';
66
import { useAPI } from '../../hooks/useAPI';
77
import { pluginId } from '../../pluginId';
88
import { AllowedActions } from '../../types';
9-
import { handleAPIError } from '../../utils';
9+
import { getMessage, handleAPIError } from '../../utils';
1010

1111
export const ApproveFlow: FC<{ id: number, canModerate: AllowedActions['canModerate'], queryKey?: string[] }> = ({ id, canModerate, queryKey }) => {
1212
const { toggleNotification } = useNotification();

admin/src/components/SideNav/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getMessage } from '../../utils';
44

55
export const SideNav = () => {
66
return (
7-
<SubNav ariaLabel="Comments sub nav">
7+
<SubNav aria-label="Comments sub nav">
88
<SubNavHeader label={getMessage('plugin.name')} />
99
<SubNavSections>
1010
<SubNavSection label={getMessage('nav.header.moderation')}>

admin/src/components/Wysiwyg/WysiwygNav.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { EditorFromTextArea } from 'codemirror5';
2828
import { useIntl } from 'react-intl';
2929

3030
import { IconButtonGroupMargin, MainButtons, MoreButton } from './WysiwygStyles';
31+
import { getMessage } from '../../utils';
3132

3233
interface WysiwygNavProps {
3334
disabled?: boolean;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-comments",
3-
"version": "3.0.14",
3+
"version": "3.0.15",
44
"description": "Strapi - Comments plugin",
55
"strapi": {
66
"name": "comments",

0 commit comments

Comments
 (0)