62 | {logo ? (
63 |

69 | ) : (
70 |
71 | {title}
72 |
73 | )}
74 | {loggedIn && (
75 | <>
76 |
81 |
89 | }
90 | onClick={handleBookmarks}
91 | >
92 | Bookmarks
93 |
94 | >
95 | )}
96 |
97 |
98 |
99 | {socials.hasWebsite && (
100 |
105 |
106 |
107 | )}
108 | {socials.hasFacebook && (
109 |
114 |
118 |
119 | )}
120 | {socials.hasInstagram && (
121 |
126 |
130 |
131 | )}
132 | {socials.hasTwitter && (
133 |
140 | )}
141 | {socials.hasTelegram && (
142 |
147 |
151 |
152 | )}
153 | {socials.hasLinkedIn && (
154 |
159 |
163 |
164 | )}
165 | {socials.hasMedium && (
166 |
171 |
172 |
173 | )}
174 | {socials.hasYouTube && (
175 |
180 |
181 |
182 | )}
183 |
184 | {isAdmin && (
185 |
}
190 | >
191 | Add Post
192 |
193 | )}
194 | {loading ? (
195 |
196 | ) : loggedIn ? (
197 |
203 | ) : (
204 |
}
210 | >
211 | Sign In
212 |
213 | )}
214 |
215 | >
216 | );
217 | };
218 |
219 | export default StandardHeader;
220 |
--------------------------------------------------------------------------------
/src/components/Header/MobileHeader.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import Typography from "@material-ui/core/Typography";
3 | import Button from "@material-ui/core/Button";
4 | import useStyles from "styles/components/Header.styles";
5 | import Divider from "@material-ui/core/Divider";
6 | import IconButton from "@material-ui/core/IconButton";
7 | import LockIcon from "@material-ui/icons/Lock";
8 | import CustomIcon from "components/CustomIcon";
9 | import { RoutingProps, TemplateSocials } from "types/app";
10 | import { Palette } from "@material-ui/core/styles/createPalette";
11 | import MenuIcon from "@material-ui/icons/Menu";
12 | import List from "@material-ui/core/List";
13 | import Drawer from "@material-ui/core/Drawer";
14 | import ListItem from "@material-ui/core/ListItem";
15 | import ListItemText from "@material-ui/core/ListItemText";
16 | import ListItemIcon from "@material-ui/core/ListItemIcon";
17 | import CircularProgress from "@material-ui/core/CircularProgress";
18 |
19 | interface Props extends RoutingProps {
20 | title: string;
21 | loggedIn: boolean;
22 | isAdmin: boolean;
23 | socials: TemplateSocials;
24 | palette: Palette;
25 | loading: boolean;
26 | walletAddress: string | undefined;
27 | handleAddPost: () => void;
28 | handleLogout: () => void;
29 | handleLogin: () => void;
30 | handleBookmarks: () => void;
31 | handleSocials: (e: any) => void;
32 | toHome: () => void;
33 | logo?: string;
34 | }
35 |
36 | const MobileHeader: React.FunctionComponent