Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
feat: remove Old Icon usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickk137 committed Jul 6, 2022
1 parent 2f6e1bf commit f57a5fa
Show file tree
Hide file tree
Showing 22 changed files with 50 additions and 291 deletions.
1 change: 0 additions & 1 deletion src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import clsx from 'clsx';
import { Card, CardVariant } from 'components/Card/Card';
import { Icon } from 'components/Icon/Icon';
import { IconButton } from 'components/IconButton/IconButton';
import { ArrowDropdownDownIcon } from 'components/Icons/ArrowDropdownDownIcon';
import { useRef, useState } from 'react';
import { CSSTransition } from 'react-transition-group';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const Button: React.FC<ButtonProps> = ({
</div>
</div>
{variant === 'spotlight' && spotlightActive && (
<div className='ui-bg-primary w-full ui-rounded ui-h-[2px] ui-w-full ui-absolute ui-bottom-1'></div>
<div className='ui-bg-primary w-full ui-rounded ui-h-[2px] ui-w-full ui-absolute ui-bottom-1' />
)}
</button>
);
Expand Down
7 changes: 3 additions & 4 deletions src/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import clsx from 'clsx';
import ArrowLeftIcon from 'components/Icons/ArrowLeftIcon';
import ArrowRightIcon from 'components/Icons/ArrowRightIcon';
import { Icon } from 'components/Icon/Icon';
import {
cloneElement,
HTMLAttributes,
Expand Down Expand Up @@ -140,7 +139,7 @@ export function Carousel({
size='sm'
onClick={handlePrev}
>
<ArrowLeftIcon active />
<Icon className='ui-text-primary' name='Left' />
</IconButton>
<IconButton
rounded
Expand All @@ -152,7 +151,7 @@ export function Carousel({
size='sm'
onClick={handleNext}
>
<ArrowRightIcon active />
<Icon className='ui-text-primary' name='Right' />
</IconButton>
</>
)}
Expand Down
7 changes: 4 additions & 3 deletions src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import clsx from 'clsx';
import { Card } from 'components/Card/Card';
import CloseIcon from 'components/Icons/CloseIcon';
import { Icon } from 'components/Icon/Icon';
import { useOnClickOutside } from 'hooks/useOnClickOutside';
import React, { useEffect, useRef } from 'react';
import { CSSTransition } from 'react-transition-group';
Expand Down Expand Up @@ -58,8 +58,9 @@ export const Dialog: React.FC<DialogProps> = ({
)}
>
{!hideCloseIcon && (
<CloseIcon
className='ui-absolute ui-top-4 ui-right-4 ui-text-xl ui-cursor-pointer'
<Icon
className='ui-absolute ui-top-4 ui-right-4 ui-cursor-pointer'
name='Small-Cross'
onClick={onClose}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ExternalLink/ExternalLink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx';
import { ArrowLinkOffIcon } from 'components/Icons/ArrowLinkOffIcon';
import { Icon } from 'components/Icon/Icon';

export interface ExternalLinkProps {
className?: string;
Expand Down Expand Up @@ -30,7 +30,7 @@ export const ExternalLink: React.FC<ExternalLinkProps> = ({
target='_blank'
>
{text}
{!withoutIcon && <ArrowLinkOffIcon />}
{!withoutIcon && <Icon className='ui-ml-1' name='Link-off' />}
</a>
);
};
4 changes: 2 additions & 2 deletions src/components/IconButton/IconButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';

import CloseIcon from '../Icons/CloseIcon';
import { Icon } from '../Icon/Icon';
import { IconButton } from './IconButton';

export default {
Expand All @@ -11,7 +11,7 @@ export default {

const Template: ComponentStory<typeof IconButton> = (args) => (
<IconButton {...args}>
<CloseIcon />
<Icon name='Small-Cross' />
</IconButton>
);

Expand Down
21 changes: 0 additions & 21 deletions src/components/Icons/ArrowDropdownDownIcon.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/Icons/ArrowDropdownLeftIcon.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/Icons/ArrowDropdownRightIcon.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/components/Icons/ArrowLeftIcon.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/Icons/ArrowLinkOffIcon.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/components/Icons/ArrowRightIcon.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/Icons/CloseIcon.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/Icons/SkipLeftIcon.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions src/components/Icons/SkipRightIcon.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/components/Icons/types.ts

This file was deleted.

Loading

0 comments on commit f57a5fa

Please sign in to comment.