@fortawesome/free-solid-svg-icons#faCalendarAlt TypeScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#faCalendarAlt. 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: ExerciseVersionHistory.tsx    From frontend.ro with MIT License 5 votes vote down vote up
ExerciseVersion = ({
  index,
  href,
  version,
  isActive,
  className = '',
}: ExerciseVersionProps) => {
  const dateTime = format(new Date(version.createdAt).getTime(), 'yyyy-MM-dd');

  return (
    <Link replace href={href} passHref>
      <a className={`
        ${className}
        ${styles.ExerciseVersion} 
        ${isActive ? styles['ExerciseVersion--active'] : ''}
        d-flex no-underline
        `}
      >
        <div className={`${styles.index} d-flex p-3 align-items-center text-2xl`}>
          {index}
        </div>
        <div className="p-3">
          <p className="text-bold m-0 d-flex align-items-center">
            {version.approved ? (
              <>
                <span className="mr-2"> Soluție corectă </span>
                <FontAwesomeIcon width="16" icon={faCheck} />
              </>
            ) : (
              <>
                <span className="mr-2"> Soluție respinsă </span>
                <FontAwesomeIcon width="16" icon={faTimes} />
              </>
            )}
          </p>
          <time title={dateTime} className="d-block mt-4 mb-2" dateTime={dateTime}>
            <FontAwesomeIcon width="16" className="text-silver" icon={faCalendarAlt} />
            {' '}
            {timeAgo(new Date(version.createdAt))}
          </time>
        </div>
      </a>
    </Link>
  );
}
Example #2
Source File: icons.font-awesome-solid.ts    From dayz-server-manager with MIT License 5 votes vote down vote up
fontAwesomeSolidIcons = {
    faAngleDown,
    faAngleRight,
    faArrowLeft,
    faBars,
    faBookOpen,
    faChartArea,
    faChartBar,
    faChartPie,
    faChevronDown,
    faChevronUp,
    faColumns,
    faSearch,
    faTable,
    faTachometerAlt,
    faUser,
    faExclamationTriangle,
    faSignOutAlt,
    faCalendarAlt,
    faCogs,
    faClipboardList,
    faHammer,
    faTools,
    faSync,
    faLock,
    faLockOpen,
    faTrash,
    faPlusCircle,
    faSpinner,
    faMap,
    faAnchor,
    faCity,
    faChessRook,
    faMountain,
    faCampground,
    faHome,
    faUniversity,
    faCrosshairs,
    faPlane,
    faWrench,
}