Skip to content

Commit

Permalink
fix: Use fa-exclamation-triangle instead of exclamation-triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeliwo committed Sep 2, 2019
1 parent d5e560e commit dd9be98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/components/Flash/Flash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FlashComponent extends React.PureComponent<MergedProps, State> {
public render() {
const { visible } = this.state
const { type, text, onClose, theme } = this.props
const iconName = type === 'success' ? 'fa-check-circle' : 'exclamation-triangle'
const iconName = type === 'success' ? 'fa-check-circle' : 'fa-exclamation-triangle'

if (!visible) return null

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']> = [
'exclamation-triangle',
'fa-address-book',
'fa-address-card',
'fa-angle-double-down',
Expand All @@ -29,6 +28,7 @@ const icons: Array<Props['name']> = [
'fa-databas',
'fa-ellipsis-h',
'fa-envelope',
'fa-exclamation-triangle',
'fa-file',
'fa-file-alt',
'fa-file-archive',
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 @@ -20,6 +20,7 @@ import {
FaDatabase,
FaEllipsisH,
FaEnvelope,
FaExclamationTriangle,
FaFile,
FaFileAlt,
FaFileArchive,
Expand Down Expand Up @@ -50,7 +51,6 @@ import {
FaUserCircle,
FaUsers,
} from 'react-icons/fa'
import { ExclamationTriangle } from './svg/ExclamationTriangle'

export interface IconProps {
color?: string
Expand All @@ -62,7 +62,6 @@ export interface Props extends IconProps {
}

const iconMap = {
'exclamation-triangle': ExclamationTriangle,
'fa-address-book': FaAddressBook,
'fa-address-card': FaAddressCard,
'fa-angle-double-down': FaAngleDoubleDown,
Expand All @@ -83,6 +82,7 @@ const iconMap = {
'fa-databas': FaDatabase,
'fa-ellipsis-h': FaEllipsisH,
'fa-envelope': FaEnvelope,
'fa-exclamation-triangle': FaExclamationTriangle,
'fa-file': FaFile,
'fa-file-alt': FaFileAlt,
'fa-file-archive': FaFileArchive,
Expand Down
23 changes: 0 additions & 23 deletions src/components/Icon/svg/ExclamationTriangle.tsx

This file was deleted.

0 comments on commit dd9be98

Please sign in to comment.