react-icons/fa#FaHistory TypeScript Examples

The following examples show how to use react-icons/fa#FaHistory. 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: ToggleHistoryStatisticsButton.tsx    From camunda-cockpit-plugins with Apache License 2.0 6 votes vote down vote up
ToggleHistoryStatisticsButton = ({ onToggleHistoryStatistics }: any) => {
  const [showHistoryStatistics, setShowHistoryStatistics] = useState(false);
  useEffect(() => {
    onToggleHistoryStatistics(showHistoryStatistics);
  }, [showHistoryStatistics]);
  return (
    <button
      className="toggle-history-view-button"
      title={!showHistoryStatistics ? 'Show history instance statistics' : 'Hide history instance statistics'}
      aria-label={!showHistoryStatistics ? 'Show history instance statistics' : 'Hide history instance statistics'}
      onClick={() => setShowHistoryStatistics(!showHistoryStatistics)}
    >
      <FaHistory style={{ opacity: !showHistoryStatistics ? '0.33' : '1.0', fontSize: '133%' }} />
    </button>
  );
}
Example #2
Source File: ToggleHistoryViewButton.tsx    From camunda-cockpit-plugins with Apache License 2.0 6 votes vote down vote up
ToggleHistoryViewButton = ({ onToggleHistoryView, initial }: any) => {
  const [showHistoryView, setShowHistoryView] = useState(!!initial);
  useEffect(() => {
    onToggleHistoryView(showHistoryView);
  }, [showHistoryView]);
  return (
    <button
      className="toggle-history-view-button"
      title={!showHistoryView ? 'Show history view' : 'Show runtime view'}
      aria-label={!showHistoryView ? 'Show history view' : 'Show runtime view'}
      onClick={() => setShowHistoryView(!showHistoryView)}
    >
      <FaHistory style={{ opacity: !showHistoryView ? '0.33' : '1.0', fontSize: '133%' }} />
    </button>
  );
}