Skip to content

Commit

Permalink
migrate local icons to jengaicons
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-kaushal committed May 18, 2023
1 parent 8f15c51 commit f06cdf6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { memo } from 'react';

import { Button } from '../../../actions';
import { tasty } from '../../../../tasty';
import { Cross } from '../../../../icons';
import { X } from '@jengaicons/react';

export type NotificationCloseButtonProps = {
onPress: () => void;
};

const CloseButton = tasty(Button, {
icon: <Cross />,
icon: <X />,
label: 'Close the notification',
qa: 'NotificationCloseButton',
type: 'neutral',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { memo, ReactNode } from 'react';

import { tasty } from '../../../../tasty';
import { Danger, Success, Attention } from '../../../../icons';
import { Warning, CheckCircle, WarningCircle } from '@jengaicons/react';

import { NotificationIconProps } from './types';

Expand Down Expand Up @@ -73,7 +73,7 @@ export const NotificationIcon = memo(function NotificationIcon(
});

const iconsByType: Record<NotificationIconProps['type'], ReactNode> = {
attention: <Attention />,
success: <Success />,
danger: <Danger />,
attention: <WarningCircle />,
success: <CheckCircle />,
danger: <Warning />,
};
11 changes: 0 additions & 11 deletions src/icons/Attention.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/icons/Cross.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/icons/Danger.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/icons/Success.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/icons/index.ts

This file was deleted.

0 comments on commit f06cdf6

Please sign in to comment.