@fortawesome/free-solid-svg-icons#faFile JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faFile.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NotificationMenu.jsx From react-lte with MIT License | 6 votes |
demoData = [
{
id: 1,
icon: faEnvelope,
message: '4 new messages',
date: '3 mins',
href: '/notification/1',
},
{
id: 2,
icon: faUsers,
message: '8 friend requests',
date: '12 hours',
href: '/notification/2',
},
{
id: 3,
icon: faFile,
message: '3 new reports',
date: '2 days',
href: '/notification/3',
},
]
Example #2
Source File: icon.js From uptime-kuma with MIT License | 5 votes |
library.add( faArrowAltCircleUp, faCog, faEdit, faEye, faEyeSlash, faList, faPause, faPlay, faPlus, faSearch, faTachometerAlt, faTimes, faTimesCircle, faTrash, faCheckCircle, faStream, faSave, faExclamationCircle, faBullhorn, faArrowsAltV, faUnlink, faQuestionCircle, faImages, faUpload, faCopy, faCheck, faFile, faAward, faLink, faChevronDown, faSignOutAlt, faPen, faExternalLinkSquareAlt, faSpinner, faUndo, faPlusCircle, faAngleDown, faLink, );
Example #3
Source File: index.jsx From loopring-swap with GNU General Public License v3.0 | 5 votes |
TechnicalResources = () => {
return (
<>
<ListItemHeader mb={2}>
<FormattedMessage id="drawer.wallet.connect.list.header.technical.resources" />
</ListItemHeader>
<UndecoratedLink
href="https://docs.loopring.io/en/"
target="_blank"
rel="noreferrer noopener"
>
<ListItemBox>
<ListItemIcon icon={faFile} />{" "}
<FormattedMessage id="drawer.wallet.connect.list.item.exchange.api" />
</ListItemBox>
</UndecoratedLink>
<UndecoratedLink
href={`${getEtherscanLink(
CHAIN_ID
)}/address/${DEX_SMART_CONTRACT_ADDRESS}`}
target="_blank"
rel="noreferrer noopener"
>
<ListItemBox>
<ListItemIcon icon={faPencilRuler} />{" "}
<FormattedMessage id="drawer.wallet.connect.list.item.smart.contract" />
</ListItemBox>
</UndecoratedLink>
<UndecoratedLink
href="https://loopring.org"
target="_blank"
rel="noreferrer noopener"
>
<ListItemBox>
<ListItemIcon icon={faRulerCombined} />{" "}
<FormattedMessage id="drawer.wallet.connect.list.item.loopring.protocol" />
</ListItemBox>
</UndecoratedLink>
<UndecoratedLink
href="https://github.com/luzzif/loopring-swap"
target="_blank"
rel="noreferrer noopener"
>
<ListItemBox>
<ListItemIcon icon={faCode} />{" "}
<FormattedMessage id="drawer.wallet.connect.list.item.source.code" />
</ListItemBox>
</UndecoratedLink>
</>
);
}
Example #4
Source File: index.js From Webiu with MIT License | 5 votes |
Card = ({ header, data, card, services, buttonLink, buttonText }) => {
return (
<div className="card-component">
{header ? <div className="header-component">
<h2>
<FontAwesomeIcon className="icon-h2" icon={card ? faFile : faInfoCircle} /> {header}
</h2>
</div> : null}
<Container>
<Row>
{card && data.map((data, index) => (
<Col lg={4} key={index} className="card-col">
<div className="card-div">
<img src={data.image} className="card-img" alt="logo" />
<hr />
<div className="item-title">
<h4 className="title-text">{data.title}</h4>
</div>
<div className="item-description">
<p>{data.description}</p>
</div>
<div className="btn-center">
<Link to={data.buttonLink} className="btn">
{data.buttonText}
</Link>
</div>
</div>
</Col>
))}
{services && data.map((data, index) => (
<Col lg={4} key={index} className="services-col">
<div className="services-div">
<img src={data.image} className="services-img" alt="logo" />
<div className="services-title">
<h5 className="services-text">{data.title}</h5>
</div>
<div className="services-description">
<p>{data.description}</p>
</div>
</div>
</Col>
))}
</Row>
{services ? <div className="btn-center">
<Link to={buttonLink} className="btn">
{buttonText}
</Link>
</div> : null}
</Container>
</div>
)
}
Example #5
Source File: MetaConfig.js From Designer-Client with GNU General Public License v3.0 | 4 votes |
export function MetaConfig(props) {
const dispatch = useDispatch();
const history = useHistory();
const classes = useStyles();
const [cols, setCols] = useState();
const { id } = useParams();
const metaDict = useSelector((state) => state.metas.dict);
const meta = metaDict[id];
console.log(meta);
useEffect(() => {
dispatch(metaActions.getMeta(id)).then((response) => {
if(response.error) {
alertActions.handleError(dispatch, response.error);
return;
}
})
}, [])
useEffect(() => {
if(meta && meta.columns && !cols) {
let columns = [];
for (const col of meta.columns) {
const obj = {...col};
obj.isNullable = obj.isNullable || false;
obj.isUnique = obj.isUnique || false;
obj.isHidden = obj.isHidden || false;
columns.push(obj);
}
setCols(columns);
}
}, [meta])
let dataTypeIcon;
if (meta && meta.dataType) {
switch (meta.dataType) {
case "file":
dataTypeIcon = <FontAwesomeIcon icon={faFile} />
break;
case "database":
dataTypeIcon = <FontAwesomeIcon icon={faDatabase} />
break;
case "link":
dataTypeIcon = <FontAwesomeIcon icon={faLink} />
break;
}
}
return (
<div className={classes.root}>
{meta &&
<div>
<Grid container>
<Grid item xs={12}>
<div className={classes.dataInfo}>
{dataTypeIcon}
<span className={classes.dataName}>
{meta.originalFileName}
</span>
</div>
</Grid>
</Grid>
{cols &&
<Grid container>
<Grid item lg={4} md={6} xs={12}>
<MetaSchema cols={cols} />
l4 m6 x12
</Grid>
<Grid item lg={4} md={6} xs={12}>
<MetaOptions />
l4 m6 x12
</Grid>
<Grid item lg={4} md={12}>
<MetaDocs />
l4 m12
</Grid>
</Grid>
}
</div>
}
</div>
)
}