26 |
27 | You're up and running with NextJS & Redux!
28 |
29 |
30 | Logged in as{' '}
31 |
32 | {`${user.username} (id: ${user.id})`}
33 |
34 |
35 |
36 | );
37 | }
38 |
39 | const Container = styled.div`
40 | display: flex;
41 | flex-direction: column;
42 | align-items: center;
43 | justify-content: center;
44 | margin-bottom: 10px;
45 | `;
46 |
47 | const StyledText = styled(Text).attrs({
48 | fontSize: 25,
49 | regular: true,
50 | })``;
51 |
52 | Landing.Layout = DefaultLayout;
53 |
--------------------------------------------------------------------------------
/src/pages/_app.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { AppProps } from 'next/app';
3 | import { createGlobalStyle, ThemeProvider } from 'styled-components';
4 | import { themes } from '../ui/themes';
5 | import { NextComponentType, NextPageContext } from 'next';
6 | import { Provider } from 'react-redux';
7 | import store from '../redux/store';
8 |
9 | interface MyAppProps extends AppProps {
10 | Component: {
11 | Layout?: React.ExoticComponent<{
12 | children?: React.ReactNode;
13 | }>;
14 | } & NextComponentType