Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(icons): Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Mar 8, 2021
1 parent 9a71c03 commit fa2d7dd
Show file tree
Hide file tree
Showing 80 changed files with 240 additions and 80 deletions.
4 changes: 3 additions & 1 deletion src-icons/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const ${name}Icon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;
// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;
return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const ArrowIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetActivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetActivityIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetAudioIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetDefault.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetDefaultIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetDiagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetDiagramIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetFluidbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetFluidbookIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetFolderIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetImageIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetInfographic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetInfographicIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetLinkIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetPdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetPdfIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetPodcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetPodcastIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetPresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetPresentationIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetQuiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetQuizIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetSpreadsheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetSpreadsheetIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetText.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetTextIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetVideoIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/AssetWebinar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const AssetWebinarIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Box.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const BoxIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const CalendarIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Captions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const CaptionsIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const ChatIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Chevron.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const ChevronIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const CollectionIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const CycleIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const DiskIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Dislike.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const DislikeIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const DotIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Download.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const DownloadIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Dropbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const DropboxIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const EditIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/Ellipsis.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const EllipsisIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/External.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const ExternalIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/EyeClosed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const EyeClosedIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
4 changes: 3 additions & 1 deletion src/icons/EyeOpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const EyeOpenIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

// Unless the icon has an explicit ARIA label, we'll hide it visually
const ariaHidden = !(otherProps['aria-label'] || otherProps['aria-labelledby']) || undefined;
const ariaHidden =
!(otherProps['aria-label'] || otherProps['aria-labelledby']) ||
undefined;

return (
<Svg
Expand Down
Loading

0 comments on commit fa2d7dd

Please sign in to comment.