semantic-ui-react#StatisticGroup JavaScript Examples

The following examples show how to use semantic-ui-react#StatisticGroup. 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: HomePage.js    From vch-mri with MIT License 5 votes vote down vote up
render() {
        const user = jwt_decode(Cache.getItem(AUTH_USER_ID_TOKEN_KEY));
        return (
            <div className='page-container'>
                <Grid centered>
                    <Grid.Row centered>
                        <Container text>
                            <Header as='h1' style={{ fontSize: '2em', paddingTop: '0.75em',}}>
                                {`Welcome back, ${this.props.auth.user.name ? this.props.auth.user.name : user.name}!`}
                            </Header>
                        </Container>
                    </Grid.Row>
                    <Grid.Row centered style={{ paddingBottom: '4em',}}>
                        <Button
                            color='blue'
                            size='huge'
                            onClick={this.handleClick}
                            icon
                            labelPosition='right'
                        >
                            <Icon name='arrow circle right'/> Book an MRI
                        </Button>
                    </Grid.Row>
                    <Grid.Row centered>
                        <StatisticGroup>
                            <Statistic>
                                <Statistic.Value>{this.props.info.daily}</Statistic.Value>
                                <Statistic.Label>Forms processed today</Statistic.Label>
                            </Statistic>
                            <Statistic>
                                <Statistic.Value>{this.props.info.weekly}</Statistic.Value>
                                <Statistic.Label>Forms processed this week</Statistic.Label>
                            </Statistic>
                            <Statistic>
                                <Statistic.Value>{this.props.info.monthly}</Statistic.Value>
                                <Statistic.Label>Forms processed this month</Statistic.Label>
                            </Statistic>
                        </StatisticGroup>
                    </Grid.Row>
                </Grid>
            </div>
        )
    }