mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-25 04:18:35 +00:00
feat(web): font awesome icon animations
This commit is contained in:
1 parent
a50f7a2052
commit
882e372895
24 files changed
+124
-47
No files matched your search
@@ -3,6 +3,7 @@ import { ISelect } from '../../../../typings';
|
||||
import { Control, useController } from 'react-hook-form';
|
||||
import { FormValues } from '../../InputDialog';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import LibIcon from '../../../../components/LibIcon';
|
||||
|
||||
interface Props {
|
||||
row: ISelect;
|
||||
@@ -32,7 +33,7 @@ const SelectField: React.FC<Props> = (props) => {
|
||||
description={props.row.description}
|
||||
withAsterisk={props.row.required}
|
||||
clearable={props.row.clearable}
|
||||
icon={props.row.icon && <FontAwesomeIcon icon={props.row.icon} fixedWidth />}
|
||||
icon={props.row.icon && <LibIcon icon={props.row.icon} fixedWidth />}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
@@ -49,7 +50,7 @@ const SelectField: React.FC<Props> = (props) => {
|
||||
description={props.row.description}
|
||||
withAsterisk={props.row.required}
|
||||
clearable={props.row.clearable}
|
||||
icon={props.row.icon && <FontAwesomeIcon icon={props.row.icon} fixedWidth />}
|
||||
icon={props.row.icon && <LibIcon icon={props.row.icon} fixedWidth />}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user