Router.events.on('routeChangeComplete', (url) => { if (window && process.env.GA_MEASUREMENT_ID) { window.gtag('config', process.env.GA_MEASUREMENT_ID, { page_path: url, }); } NProgress.done(); });
const Index = () => ( <div style={{ padding: '10px 45px' }}> <Head> <title>Index page</title> <meta name="description" content="This is a description of the Index page" /> </Head> <p>Content on Index page</p> <Button variant="contained">MUI button</Button> </div> )
render() { const { book, error } = this.state; if (error) { notify(error); return <Error statusCode={500} />; } if (!book) { return null; } return ( <div> <EditBookComp onSave={this.editBook} book={book} /> </div> ); }
render() { const { user } = this.props; return ( <div style={{ padding: '10px 45px' }}> <Head> <title>Dashboard</title> <meta name="description" content="List of purchased books." /> </Head> <p>List of purchased books</p> <p> Email: {user.email} </p> </div> ); }
const Header = () => ( <div> <Toolbar style={styleToolbar}> <Grid container direction="row" justify="space-around" align="center"> <Grid item xs={12} style={{ textAlign: 'right' }}> <Link href="/login"> <a style={{ margin: '0px 20px 0px auto' }}>Log in</a> </Link> </Grid> </Grid> </Toolbar> </div> )
Router.events.on('routeChangeStart', () => { NProgress.start(); });
const Index = ({ user }) => ( <div style={{ padding: '10px 45px' }}> <Head> <title>Dashboard</title> <meta name="description" content="This is a description of the Index page" /> </Head> <p>Content on Index page</p> <p> Email: {user.email} </p> </div> )
const Index = () => ( <div style={{ padding: '10px 45px' }}> <Head> <title>Index page</title> <meta name="description" content="This is SEO description of Index page" /> </Head> <p>Content on Index page</p> </div> )
Router.events.on('routeChangeComplete', (url) => { if (window && process.env.GA_MEASUREMENT_ID) { window.gtag('config', process.env.GA_MEASUREMENT_ID, { page_path: url, }); } NProgress.done(); });
Router.events.on('routeChangeComplete', (url) => { if (window && process.env.GA_MEASUREMENT_ID) { window.gtag('config', process.env.GA_MEASUREMENT_ID, { page_path: url, }); } NProgress.done(); });
const Index = ({ user }) => ( <div style={{ padding: '10px 45px' }}> <Head> <title>Index page</title> <meta name="description" content="This is an SEO description of the Index page" /> </Head> <p>Content on Index page</p> <p> Email: {user.email} </p> </div> )
const Header = () => ( <div> <Toolbar style={styleToolbar}> <Grid container direction="row" justify="space-around" align="center"> <Grid item xs={12} style={{ textAlign: 'right' }}> <Link href="/login"> <a style={{ margin: '0px 20px 0px auto' }}>Log in</a> </Link> </Grid> </Grid> </Toolbar> </div> )
Router.events.on('routeChangeStart', () => { NProgress.start(); });
Router.events.on('routeChangeStart', () => { NProgress.start(); });
render() { const { book, error } = this.state; if (error) { notify(error); return <Error statusCode={500} />; } if (!book) { return null; } return ( <div> <EditBookComp onSave={this.editBook} book={book} /> </div> ); }