diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..961ec1cb --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "jsxSingleQuote": true, + "semi": false, + "tabWidth": 4, + "useTabs": true, + "printWidth": 150 +} diff --git a/package.json b/package.json index fa5299bd..4ef98dda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aftershootco/unicorn-icons-1", - "version": "1.0.1", + "version": "1.0.2", "description": "", "author": "AfterShoot", "license": "ISC", diff --git a/src/Icons/ArrowBackIcon.tsx b/src/Icons/ArrowBackIcon.tsx index ca619974..40519d61 100644 --- a/src/Icons/ArrowBackIcon.tsx +++ b/src/Icons/ArrowBackIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ArrowBackIcon: React.FC> = (props) => { return ( - + ) diff --git a/src/Icons/ArrowDownIcon.tsx b/src/Icons/ArrowDownIcon.tsx index f2837a68..36063d6f 100644 --- a/src/Icons/ArrowDownIcon.tsx +++ b/src/Icons/ArrowDownIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ArrowDownIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/ArrowForwardIcon.tsx b/src/Icons/ArrowForwardIcon.tsx index 9bb96edc..0f694233 100644 --- a/src/Icons/ArrowForwardIcon.tsx +++ b/src/Icons/ArrowForwardIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ArrowForwardIcon: React.FC> = (props) => { return ( - + ) diff --git a/src/Icons/ArrowIcon.tsx b/src/Icons/ArrowIcon.tsx new file mode 100644 index 00000000..8dbbabe5 --- /dev/null +++ b/src/Icons/ArrowIcon.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +const ArrowIcon: React.FC> = React.memo((props) => { + return ( + + + + ) +}) + +export default ArrowIcon diff --git a/src/Icons/ArrowUpIcon.tsx b/src/Icons/ArrowUpIcon.tsx index 0c5103da..d95f89d1 100644 --- a/src/Icons/ArrowUpIcon.tsx +++ b/src/Icons/ArrowUpIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ArrowUpIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/CheckCircleIcon.tsx b/src/Icons/CheckCircleIcon.tsx index 9538b62f..8a91f95e 100644 --- a/src/Icons/CheckCircleIcon.tsx +++ b/src/Icons/CheckCircleIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const CheckCircleIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/CheckIcon.tsx b/src/Icons/CheckIcon.tsx index b07d50c4..df650df7 100644 --- a/src/Icons/CheckIcon.tsx +++ b/src/Icons/CheckIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const CheckIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/ClearIcon.tsx b/src/Icons/ClearIcon.tsx index f58b763e..2d8662a8 100644 --- a/src/Icons/ClearIcon.tsx +++ b/src/Icons/ClearIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ClearIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/ClockIcon.tsx b/src/Icons/ClockIcon.tsx index 5b0a1c09..39c83873 100644 --- a/src/Icons/ClockIcon.tsx +++ b/src/Icons/ClockIcon.tsx @@ -1,47 +1,25 @@ -import React from 'react'; +import React from 'react' const ClockIcon: React.FC> = (props) => { - return ( - - - - - - - - - - - - - - ); -}; -export default React.memo(ClockIcon); + return ( + + + + + + + + + + + + + + ) +} +export default React.memo(ClockIcon) diff --git a/src/Icons/ContactSupportIcon.tsx b/src/Icons/ContactSupportIcon.tsx index f7e5ba32..9a5e2be9 100644 --- a/src/Icons/ContactSupportIcon.tsx +++ b/src/Icons/ContactSupportIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ContactSupportIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/ContentCopyIcon.tsx b/src/Icons/ContentCopyIcon.tsx index 0775d337..49bad47b 100644 --- a/src/Icons/ContentCopyIcon.tsx +++ b/src/Icons/ContentCopyIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ContentCopyIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/ExpandMoreIcon.tsx b/src/Icons/ExpandMoreIcon.tsx index f1cfd945..13ada54c 100644 --- a/src/Icons/ExpandMoreIcon.tsx +++ b/src/Icons/ExpandMoreIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const ExpandMoreIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/InfoIcon.tsx b/src/Icons/InfoIcon.tsx index 8106286e..f6d5654a 100644 --- a/src/Icons/InfoIcon.tsx +++ b/src/Icons/InfoIcon.tsx @@ -1,46 +1,24 @@ -import React from 'react'; +import React from 'react' -const InfoIcon: React.FC> = React.forwardRef( - (props, ref: any) => { - return ( - - - - - - - - - - - - - ); - } -); +const InfoIcon: React.FC> = React.forwardRef((props, ref: any) => { + return ( + + + + + + + + + + + + + ) +}) -export default React.memo(InfoIcon); +export default React.memo(InfoIcon) diff --git a/src/Icons/KeyBoardArrowDownIcon.tsx b/src/Icons/KeyBoardArrowDownIcon.tsx index 2e2e7a9e..05018b43 100644 --- a/src/Icons/KeyBoardArrowDownIcon.tsx +++ b/src/Icons/KeyBoardArrowDownIcon.tsx @@ -1,17 +1,8 @@ import React from 'react' -const KeyBoardArrowDownIcon: React.FC> = ( - props -) => { +const KeyBoardArrowDownIcon: React.FC> = (props) => { return ( - + ) diff --git a/src/Icons/KeyBoardArrowLeftIcon.tsx b/src/Icons/KeyBoardArrowLeftIcon.tsx index f73023df..7becd425 100644 --- a/src/Icons/KeyBoardArrowLeftIcon.tsx +++ b/src/Icons/KeyBoardArrowLeftIcon.tsx @@ -1,17 +1,8 @@ import React from 'react' -const KeyBoardArrowLeftIcon: React.FC> = ( - props -) => { +const KeyBoardArrowLeftIcon: React.FC> = (props) => { return ( - + ) diff --git a/src/Icons/KeyBoardArrowRightIcon.tsx b/src/Icons/KeyBoardArrowRightIcon.tsx index 3525c8e2..744e2969 100644 --- a/src/Icons/KeyBoardArrowRightIcon.tsx +++ b/src/Icons/KeyBoardArrowRightIcon.tsx @@ -1,17 +1,8 @@ import React from 'react' -const KeyBoardArrowRightIcon: React.FC> = ( - props -) => { +const KeyBoardArrowRightIcon: React.FC> = (props) => { return ( - + ) diff --git a/src/Icons/KeyBoardArrowUpIcon.tsx b/src/Icons/KeyBoardArrowUpIcon.tsx index c4432bf0..8fc6db50 100644 --- a/src/Icons/KeyBoardArrowUpIcon.tsx +++ b/src/Icons/KeyBoardArrowUpIcon.tsx @@ -1,17 +1,8 @@ import React from 'react' -const KeyBoardArrowUpIcon: React.FC> = ( - props -) => { +const KeyBoardArrowUpIcon: React.FC> = (props) => { return ( - + ) diff --git a/src/Icons/MenuIcon.tsx b/src/Icons/MenuIcon.tsx index 2b49b824..6407f476 100644 --- a/src/Icons/MenuIcon.tsx +++ b/src/Icons/MenuIcon.tsx @@ -2,14 +2,7 @@ import React from 'react' const MenuIcon: React.FC> = (props) => { return ( - + diff --git a/src/Icons/ProcessIcon.tsx b/src/Icons/ProcessIcon.tsx index 46ce29eb..ff97716e 100644 --- a/src/Icons/ProcessIcon.tsx +++ b/src/Icons/ProcessIcon.tsx @@ -1,21 +1,14 @@ -import React from 'react'; +import React from 'react' const ProcessIcon: React.FC> = (props) => { - return ( - - - - ); -}; + return ( + + + + ) +} -export default React.memo(ProcessIcon); +export default React.memo(ProcessIcon) diff --git a/src/Icons/Reskin/ArrowIcon.tsx b/src/Icons/Reskin/ArrowIcon.tsx deleted file mode 100644 index a2140a04..00000000 --- a/src/Icons/Reskin/ArrowIcon.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; - -const ArrowIcon: React.FC> = (props) => { - return ( - - - - ); -}; - -export default React.memo(ArrowIcon); diff --git a/src/Icons/index.ts b/src/Icons/index.ts index c8907f64..16f75a6f 100644 --- a/src/Icons/index.ts +++ b/src/Icons/index.ts @@ -1,43 +1,43 @@ -import ArrowBackIcon from './ArrowBackIcon'; -import ArrowDownIcon from './ArrowDownIcon'; -import ArrowIcon from './Reskin/ArrowIcon'; -import ArrowForwardIcon from './ArrowForwardIcon'; -import ArrowUpIcon from './ArrowUpIcon'; -import CheckCircleIcon from './CheckCircleIcon'; -import CheckIcon from './CheckIcon'; -import ClearIcon from './ClearIcon'; -import ClockIcon from './ClockIcon'; -import ContactSupportIcon from './ContactSupportIcon'; -import ContentCopyIcon from './ContentCopyIcon'; -import ExpandMoreIcon from './ExpandMoreIcon'; -import InfoIcon from './InfoIcon'; -import KeyBoardArrowDownIcon from './KeyBoardArrowDownIcon'; -import KeyBoardArrowLeftIcon from './KeyBoardArrowLeftIcon'; -import KeyBoardArrowRightIcon from './KeyBoardArrowRightIcon'; -import KeyBoardArrowUpIcon from './KeyBoardArrowUpIcon'; -import MenuIcon from './MenuIcon'; -import ProcessIcon from './ProcessIcon'; -import StarRateIcon from './StarRateIcon'; +import ArrowBackIcon from './ArrowBackIcon' +import ArrowDownIcon from './ArrowDownIcon' +import ArrowForwardIcon from './ArrowForwardIcon' +import ArrowIcon from './ArrowIcon' +import ArrowUpIcon from './ArrowUpIcon' +import CheckCircleIcon from './CheckCircleIcon' +import CheckIcon from './CheckIcon' +import ClearIcon from './ClearIcon' +import ClockIcon from './ClockIcon' +import ContactSupportIcon from './ContactSupportIcon' +import ContentCopyIcon from './ContentCopyIcon' +import ExpandMoreIcon from './ExpandMoreIcon' +import InfoIcon from './InfoIcon' +import KeyBoardArrowDownIcon from './KeyBoardArrowDownIcon' +import KeyBoardArrowLeftIcon from './KeyBoardArrowLeftIcon' +import KeyBoardArrowRightIcon from './KeyBoardArrowRightIcon' +import KeyBoardArrowUpIcon from './KeyBoardArrowUpIcon' +import MenuIcon from './MenuIcon' +import ProcessIcon from './ProcessIcon' +import StarRateIcon from './StarRateIcon' export { - ArrowIcon, - ArrowBackIcon, - ArrowDownIcon, - ArrowForwardIcon, - ArrowUpIcon, - CheckCircleIcon, - CheckIcon, - ClearIcon, - ClockIcon, - ContactSupportIcon, - ContentCopyIcon, - ExpandMoreIcon, - InfoIcon, - KeyBoardArrowDownIcon, - KeyBoardArrowLeftIcon, - KeyBoardArrowRightIcon, - KeyBoardArrowUpIcon, - MenuIcon, - ProcessIcon, - StarRateIcon, -}; + ArrowBackIcon, + ArrowDownIcon, + ArrowForwardIcon, + ArrowIcon, + ArrowUpIcon, + CheckCircleIcon, + CheckIcon, + ClearIcon, + ClockIcon, + ContactSupportIcon, + ContentCopyIcon, + ExpandMoreIcon, + InfoIcon, + KeyBoardArrowDownIcon, + KeyBoardArrowLeftIcon, + KeyBoardArrowRightIcon, + KeyBoardArrowUpIcon, + MenuIcon, + ProcessIcon, + StarRateIcon, +} diff --git a/src/index.ts b/src/index.ts index 0999f3d1..6af6916a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1 @@ -export * from './Icons'; +export * from './Icons'