react-icons/hi#HiClock JavaScript Examples
The following examples show how to use
react-icons/hi#HiClock.
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: EmptyFocusBox.js From fokus with GNU General Public License v3.0 | 5 votes |
export function EmptyFocusBox({ noTasks,noChoice }) {
const dispatch = useDispatch();
return (
<FocussedTaskDiv>
<FocussedTaskPlayer>
<FocussedTaskTimer>
<div style={{ width: 100, height: 100 }}>
<CircularProgressbarWithChildren
value={100}
styles={buildStyles({
pathColor: "#121212",
trailColor: "#F0F8FF",
})}
strokeWidth={9}
>
<CountdownTimerDiv>
<HiClock/>
</CountdownTimerDiv>
</CircularProgressbarWithChildren>
</div>
</FocussedTaskTimer>
<FocussedTaskController>
<PlayPauseButtonDiv data-tip="" data-for="Create">
<FaPen />
<ReactTooltip id="Create" getContent={() => (noTasks ? "No task" : "Focus on task")} />
</PlayPauseButtonDiv>
</FocussedTaskController>
</FocussedTaskPlayer>
<FocussedTaskContent>
{(noChoice || noTasks) ? (
<CgNotes />
) : (
<HelpPickTaskContainer>
<HelpPickTaskLabel>
<CgNotes />
<p>Focus on</p>
</HelpPickTaskLabel>
<HelpPickTaskButtonBox>
<HelpPickTaskButton onClick={() => dispatch(focusOnTask("smallest"))}>
<span>Smallest task</span>
</HelpPickTaskButton>
<HelpPickTaskButton onClick={() => dispatch(focusOnTask("largest"))}>
<span>Biggest task</span>
</HelpPickTaskButton>
</HelpPickTaskButtonBox>
</HelpPickTaskContainer>
)}
</FocussedTaskContent>
</FocussedTaskDiv>
);
}