react-icons/hi#HiOutlineClock TypeScript Examples

The following examples show how to use react-icons/hi#HiOutlineClock. 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: CourseCard.tsx    From fresh-coupons with GNU General Public License v3.0 6 votes vote down vote up
function CourseDuration({duration, isFreeCourse = false}: { duration: string | null, isFreeCourse : boolean }) {
  if (!duration) {
    return <></>
  }

  if (isFreeCourse) {
    duration = `${Math.round(+duration/360)/10} hours`
  }

  return (
    <HStack spacing="1">
      <Icon boxSize={8} as={HiOutlineClock} color="gray.400"/>
      <Text
        fontSize="sm"
        fontWeight="medium"
        color={useColorModeValue('gray.600', 'gray.300')}
      >
        {duration}
      </Text>
    </HStack>
  )
}