react-icons/ri#RiRefreshLine TypeScript Examples

The following examples show how to use react-icons/ri#RiRefreshLine. 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: ErrorBoundary.tsx    From mkn with MIT License 6 votes vote down vote up
render() {
    if (this.state.hasError) {
      return (
        <div className={styles['error-boundary-comp-wrapper']}>
          <div className={styles['error-boundary-container']}>
            <div className={styles['title']}>
              <strong>Page Load Error</strong>
            </div>

            <Button
              type="primary"
              icon={<RiRefreshLine />}
              onClick={this.onRefresh}
              className={styles['refresh-button']}
            >
              Reload
            </Button>

            <div className={styles['error-info']}>
              <pre>
                <code>{JSON.stringify(this.state.errorInfo)}</code>
              </pre>
            </div>
          </div>
        </div>
      );
    }

    return this.props.children;
  }