problems: refactor

This commit is contained in:
Alexander Zobnin
2018-12-17 09:42:43 +03:00
parent a945d57760
commit 49ac108e25
4 changed files with 374 additions and 323 deletions

View File

@@ -0,0 +1,14 @@
import React from 'react';
interface FAIconProps {
icon: string;
customClass?: string;
}
export default function FAIcon(props: FAIconProps) {
return (
<span className={`fa-icon-container ${props.customClass || ''}`}>
<i className={`fa fa-${props.icon}`}></i>
</span>
);
}