Skip to content

Commit

Permalink
fix: Use fa-check instead of check
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeliwo committed Sep 2, 2019
1 parent 66ef42a commit bc5ee1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CheckboxComponent extends React.PureComponent<Props & InjectedProps> {
{checked && (
<IconWrap>
<Icon
name="check"
name="fa-check"
size={12}
color={themeColor === 'light' ? '#fff' : theme.palette.MAIN}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const Wrapper = ({ children }: any) => <Container>{children}</Container>
const black = '#222'
const white = '#eee'
const icons: Array<Props['name']> = [
'check',
'check-circle',
'cross',
'exclamation-triangle',
Expand All @@ -26,6 +25,7 @@ const icons: Array<Props['name']> = [
'fa-chart-bar',
'fa-chart-line',
'fa-chart-pie',
'fa-check',
'fa-cog',
'fa-databas',
'fa-ellipsis-h',
Expand Down
4 changes: 2 additions & 2 deletions src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
FaChartBar,
FaChartLine,
FaChartPie,
FaCheck,
FaCog,
FaDatabase,
FaEllipsisH,
Expand Down Expand Up @@ -47,7 +48,6 @@ import {
FaUserCircle,
FaUsers,
} from 'react-icons/fa'
import { Check } from './svg/Check'
import { CheckCircle } from './svg/CheckCircle'
import { Cross } from './svg/Cross'
import { ExclamationTriangle } from './svg/ExclamationTriangle'
Expand All @@ -62,7 +62,6 @@ export interface Props extends IconProps {
}

const iconMap = {
check: Check,
'check-circle': CheckCircle,
cross: Cross,
'exclamation-triangle': ExclamationTriangle,
Expand All @@ -80,6 +79,7 @@ const iconMap = {
'fa-chart-bar': FaChartBar,
'fa-chart-line': FaChartLine,
'fa-chart-pie': FaChartPie,
'fa-check': FaCheck,
'fa-cog': FaCog,
'fa-databas': FaDatabase,
'fa-ellipsis-h': FaEllipsisH,
Expand Down
19 changes: 0 additions & 19 deletions src/components/Icon/svg/Check.tsx

This file was deleted.

0 comments on commit bc5ee1c

Please sign in to comment.