Skip to content

Commit

Permalink
fix: Linter Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RahatAli authored and RahatAli committed Nov 20, 2023
1 parent 99f03a6 commit 8a78870
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
24 changes: 12 additions & 12 deletions src/Icons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export const DashboardIcon = (props) => (
<path
d="M7 1V19M17 1H3C1.89543 1 1 1.89543 1 3V17C1 18.1046 1.89543 19 3 19H17C18.1046 19 19 18.1046 19 17V3C19 1.89543 18.1046 1 17 1Z"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
Expand All @@ -75,9 +75,9 @@ export const ProfileIcon = (props) => (
>
<path d="M17 19V17C17 15.9391 16.5786 14.9217 15.8284 14.1716C15.0783 13.4214 14.0609 13 13 13H5C3.93913 13 2.92172 13.4214 2.17157 14.1716C1.42143 14.9217 1 15.9391 1 17V19M9 9C11.2091 9 13 7.20914 13 5C13 2.79086 11.2091 1 9 1C6.79086 1 5 2.79086 5 5C5 7.20914 6.79086 9 9 9Z"

Check failure on line 76 in src/Icons.jsx

View workflow job for this annotation

GitHub Actions / tests

Property should be placed on a new line
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
Expand All @@ -94,9 +94,9 @@ export const AccountIcon = (props) => (
<path
d="M4 19V12M4 8V1M12 19V10M12 6V1M20 19V14M20 10V1M1 12H7M9 6H15M17 14H23"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
Expand All @@ -113,9 +113,9 @@ export const LogoutIcon = (props) => (
<path
d="M7 19H3C2.46957 19 1.96086 18.7893 1.58579 18.4142C1.21071 18.0391 1 17.5304 1 17V3C1 2.46957 1.21071 1.96086 1.58579 1.58579C1.96086 1.21071 2.46957 1 3 1H7M14 15L19 10M19 10L14 5M19 10H7"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
10 changes: 6 additions & 4 deletions src/learning-header/AuthenticatedUserDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { faUserCircle } from '@fortawesome/free-solid-svg-icons';
import { getConfig } from '@edx/frontend-platform';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { Dropdown } from '@edx/paragon';
import { ProfileIcon, LogoutIcon, AccountIcon, DashboardIcon } from '../Icons';
import {
ProfileIcon, LogoutIcon, AccountIcon, DashboardIcon

Check failure on line 10 in src/learning-header/AuthenticatedUserDropdown.jsx

View workflow job for this annotation

GitHub Actions / tests

Missing trailing comma
} from '../Icons';

import messages from './messages';

Expand All @@ -31,11 +33,11 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
<Dropdown.Menu className="dropdown-menu-right">
{dashboardMenuItem}
<Dropdown.Item href={`${getConfig().ACCOUNT_PROFILE_URL}/u/${username}`}>
<span className="drop-icon"><ProfileIcon className="text-primary"/></span>
<span className="drop-icon"><ProfileIcon className="text-primary" /></span>
{intl.formatMessage(messages.profile)}
</Dropdown.Item>
<Dropdown.Item href={getConfig().ACCOUNT_SETTINGS_URL}>
<span className="drop-icon"><AccountIcon className="text-primary"/></span>
<span className="drop-icon"><AccountIcon className="text-primary" /></span>
{intl.formatMessage(messages.account)}
</Dropdown.Item>
{ getConfig().ORDER_HISTORY_URL && (
Expand All @@ -44,7 +46,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
</Dropdown.Item>
)}
<Dropdown.Item href={getConfig().LOGOUT_URL}>
<span className="drop-icon"><LogoutIcon className="text-primary"/></span>
<span className="drop-icon"><LogoutIcon className="text-primary" /></span>
{intl.formatMessage(messages.signOut)}
</Dropdown.Item>
</Dropdown.Menu>
Expand Down

0 comments on commit 8a78870

Please sign in to comment.