umwd-components 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,19 @@ const config = {
7
7
  "@storybook/addon-interactions",
8
8
  ],
9
9
  framework: {
10
- name: '@storybook/nextjs',
10
+ name: "@storybook/nextjs",
11
11
  options: {},
12
12
  },
13
13
  docs: {
14
14
  autodocs: "tag",
15
15
  },
16
- staticDirs: ["..\\public"]
16
+ staticDirs: ["..\\public"],
17
+ webpackFinal: async (config, { configType }) => {
18
+ config.resolve.alias = {
19
+ ...config.resolve.alias,
20
+ "next/navigation": "next-router-mock",
21
+ };
22
+ return config;
23
+ },
17
24
  };
18
25
  export default config;
@@ -14,7 +14,22 @@ var Link = require('next/link');
14
14
  var material = require('@mui/material');
15
15
  var CloseIcon = require('@mui/icons-material/Close');
16
16
  var MoreVertIcon = require('@mui/icons-material/MoreVert');
17
+ var navigation = require('next/navigation');
18
+ var PropTypes = require('prop-types');
17
19
 
20
+ NavBar.propTypes = {
21
+ site_title: PropTypes.string,
22
+ logo: PropTypes.shape({
23
+ url: PropTypes.string.isRequired,
24
+ width: PropTypes.string,
25
+ height: PropTypes.string,
26
+ alt: PropTypes.string
27
+ }).isRequired,
28
+ pages: PropTypes.arrayOf(PropTypes.shape({
29
+ name: PropTypes.string.isRequired,
30
+ url: PropTypes.string.isRequired
31
+ })).isRequired
32
+ };
18
33
  function NavBar({
19
34
  site_title,
20
35
  logo,
@@ -29,6 +44,7 @@ function NavBar({
29
44
  const handleCloseMobileMenu = e => {
30
45
  setMobileNavOpen(false);
31
46
  };
47
+ const router = navigation.useRouter();
32
48
  return /*#__PURE__*/React.createElement(material.AppBar, {
33
49
  position: "sticky"
34
50
  }, /*#__PURE__*/React.createElement(material.Container, {
@@ -86,8 +102,10 @@ function NavBar({
86
102
  }
87
103
  }, pages.map(page => {
88
104
  return /*#__PURE__*/React.createElement(material.Button, {
89
- key: page.name
90
- /* onClick={() => page.action()} */,
105
+ key: page.name,
106
+ onClick: () => {
107
+ router.push(page.url);
108
+ },
91
109
  sx: {
92
110
  my: 2,
93
111
  color: "primary.contrastText",
@@ -229,7 +247,8 @@ function NavBar({
229
247
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(material.ListItem, {
230
248
  key: page.name,
231
249
  onClick: () => {
232
- /* page.action(); */handleCloseMobileMenu();
250
+ router.push(page.url);
251
+ handleCloseMobileMenu();
233
252
  }
234
253
  }, /*#__PURE__*/React.createElement(material.ListItemText, {
235
254
  primary: page.name
@@ -24,6 +24,9 @@ function TextImageBlock({
24
24
  }) {
25
25
  reverse = Boolean(reverse);
26
26
  maxWidth = maxWidth || "100%";
27
+
28
+ /* TODO Text_content should deal with linebreaks */
29
+
27
30
  return /*#__PURE__*/React.createElement(material.Grid, {
28
31
  container: true,
29
32
  sx: [{
@@ -10,7 +10,22 @@ import Link from 'next/link';
10
10
  import { AppBar, Container, Toolbar, Box, Typography, Button, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
11
11
  import CloseIcon from '@mui/icons-material/Close';
12
12
  import MoreVertIcon from '@mui/icons-material/MoreVert';
13
+ import { useRouter } from 'next/navigation';
14
+ import PropTypes from 'prop-types';
13
15
 
16
+ NavBar.propTypes = {
17
+ site_title: PropTypes.string,
18
+ logo: PropTypes.shape({
19
+ url: PropTypes.string.isRequired,
20
+ width: PropTypes.string,
21
+ height: PropTypes.string,
22
+ alt: PropTypes.string
23
+ }).isRequired,
24
+ pages: PropTypes.arrayOf(PropTypes.shape({
25
+ name: PropTypes.string.isRequired,
26
+ url: PropTypes.string.isRequired
27
+ })).isRequired
28
+ };
14
29
  function NavBar({
15
30
  site_title,
16
31
  logo,
@@ -25,6 +40,7 @@ function NavBar({
25
40
  const handleCloseMobileMenu = e => {
26
41
  setMobileNavOpen(false);
27
42
  };
43
+ const router = useRouter();
28
44
  return /*#__PURE__*/React.createElement(AppBar, {
29
45
  position: "sticky"
30
46
  }, /*#__PURE__*/React.createElement(Container, {
@@ -82,8 +98,10 @@ function NavBar({
82
98
  }
83
99
  }, pages.map(page => {
84
100
  return /*#__PURE__*/React.createElement(Button, {
85
- key: page.name
86
- /* onClick={() => page.action()} */,
101
+ key: page.name,
102
+ onClick: () => {
103
+ router.push(page.url);
104
+ },
87
105
  sx: {
88
106
  my: 2,
89
107
  color: "primary.contrastText",
@@ -225,7 +243,8 @@ function NavBar({
225
243
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ListItem, {
226
244
  key: page.name,
227
245
  onClick: () => {
228
- /* page.action(); */handleCloseMobileMenu();
246
+ router.push(page.url);
247
+ handleCloseMobileMenu();
229
248
  }
230
249
  }, /*#__PURE__*/React.createElement(ListItemText, {
231
250
  primary: page.name
@@ -20,6 +20,9 @@ function TextImageBlock({
20
20
  }) {
21
21
  reverse = Boolean(reverse);
22
22
  maxWidth = maxWidth || "100%";
23
+
24
+ /* TODO Text_content should deal with linebreaks */
25
+
23
26
  return /*#__PURE__*/React.createElement(Grid, {
24
27
  container: true,
25
28
  sx: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -75,6 +75,7 @@
75
75
  "react-dom": "^18.2.0"
76
76
  },
77
77
  "dependencies": {
78
+ "next-router-mock": "^0.9.12",
78
79
  "react": "^18.2.0",
79
80
  "react-dnd": "^16.0.1",
80
81
  "react-dnd-html5-backend": "^16.0.1"
@@ -0,0 +1,3 @@
1
+ export default function Home() {
2
+ return <main></main>;
3
+ }
@@ -0,0 +1,202 @@
1
+ import {
2
+ AppBar,
3
+ Container,
4
+ Toolbar,
5
+ Typography,
6
+ Box,
7
+ IconButton,
8
+ Grid,
9
+ Divider,
10
+ Stack,
11
+ } from "@mui/material";
12
+ import Link from "next/link";
13
+ import Image from "next/image";
14
+
15
+ import PropTypes from "prop-types";
16
+
17
+ Footer.propTypes = {
18
+ site_title: PropTypes.string.isRequired,
19
+ site_logo: PropTypes.string,
20
+ company_name: PropTypes.string.isRequired,
21
+ parent_company_name: PropTypes.string,
22
+ company_address: PropTypes.shape({
23
+ street: PropTypes.string,
24
+ street_number: PropTypes.string,
25
+ street_number_addition: PropTypes.string,
26
+ postal_code: PropTypes.string,
27
+ city: PropTypes.string,
28
+ }),
29
+ CoC_number: PropTypes.string.isRequired,
30
+ VAT_number: PropTypes.string.isRequired,
31
+ company_socials: PropTypes.arrayOf(
32
+ PropTypes.shape({
33
+ name: PropTypes.string.isRequired,
34
+ url: PropTypes.string.isRequired,
35
+ icon: PropTypes.elementType,
36
+ })
37
+ ),
38
+ disclaimer_link: PropTypes.string,
39
+ privacypolicy_link: PropTypes.string,
40
+ };
41
+
42
+ function Footer({
43
+ site_title,
44
+ site_logo,
45
+ company_name,
46
+ parent_company_name,
47
+ company_address,
48
+ CoC_number,
49
+ VAT_number,
50
+ company_socials,
51
+ disclaimer_link,
52
+ privacypolicy_link,
53
+ }) {
54
+ return (
55
+ <AppBar position="relative">
56
+ <Container maxWidth="xl">
57
+ <Toolbar disableGutters>
58
+ <Grid container sx={{ p: 2 }} spacing={2}>
59
+ <Grid item xs={12} sm={4} align="center">
60
+ <Link href="/">
61
+ <Box
62
+ sx={{
63
+ display: { xs: "none", md: "flex" },
64
+ cursor: "pointer",
65
+ flexDirection: "column",
66
+ alignItems: "center",
67
+ justifyContent: "center",
68
+ }}
69
+ >
70
+ <Typography variant="h6">{site_title}</Typography>
71
+ {site_logo && (
72
+ <Box>
73
+ <Image
74
+ src={site_logo}
75
+ width={64}
76
+ height={64}
77
+ alt="site logo"
78
+ />
79
+ </Box>
80
+ )}
81
+ </Box>
82
+ </Link>
83
+ </Grid>
84
+ <Grid item xs={12} sm={4} align="center">
85
+ <Typography variant="h6">Contact Information</Typography>
86
+ <Typography variant="h6">{company_name}</Typography>
87
+ {parent_company_name && (
88
+ <Typography variant="h6">By {parent_company_name}</Typography>
89
+ )}
90
+ {company_address && (
91
+ <>
92
+ <Typography variant="body1">
93
+ {company_address.street} {company_address.street_number}{" "}
94
+ {company_address.street_number_addition &&
95
+ company_address.street_number_addition}
96
+ </Typography>
97
+
98
+ <Typography variant="body1">
99
+ {company_address.postal_code} {company_address.city}
100
+ </Typography>
101
+ </>
102
+ )}
103
+
104
+ <Typography variant="body1">CoC: {CoC_number}</Typography>
105
+ <Typography variant="body1">VAT: {VAT_number}</Typography>
106
+
107
+ <Typography variant="body1"></Typography>
108
+ <Typography variant="body1"></Typography>
109
+ </Grid>
110
+ <Grid item xs={12} sm={4} align="center">
111
+ <Typography variant="h6">Socials</Typography>
112
+ {company_socials && (
113
+ <Stack
114
+ spacing={2}
115
+ sx={{ width: "min-content", color: "primary.contrastText" }}
116
+ >
117
+ {company_socials.map((company_social, index) => {
118
+ if (
119
+ company_social.url === undefined ||
120
+ company_social.icon === undefined
121
+ ) {
122
+ return (
123
+ <IconButton color="inherit" href={company_social.url}>
124
+ {company_social.icon}
125
+ </IconButton>
126
+ );
127
+ }
128
+ })}
129
+ </Stack>
130
+ )}
131
+ </Grid>
132
+ <Grid item xs={12}>
133
+ <Divider />
134
+ </Grid>
135
+ {/* important links */}
136
+ {disclaimer_link && (
137
+ <Grid
138
+ item
139
+ xs={12}
140
+ sm={4}
141
+ sx={{
142
+ display: "flex",
143
+ justifyContent: "center",
144
+ alignItems: "center",
145
+ }}
146
+ >
147
+ <Link href={disclaimer_link}>
148
+ <Typography variant="body1">Disclaimer</Typography>
149
+ </Link>
150
+ </Grid>
151
+ )}
152
+ {privacypolicy_link && (
153
+ <Grid
154
+ item
155
+ xs={12}
156
+ sm={4}
157
+ sx={{
158
+ display: "flex",
159
+ justifyContent: "center",
160
+ alignItems: "center",
161
+ }}
162
+ >
163
+ <Link href={privacypolicy_link}>
164
+ <Typography variant="body1">Privacy Policy</Typography>
165
+ </Link>
166
+ </Grid>
167
+ )}
168
+ {/* TODO */}
169
+ {/* <Grid
170
+ item
171
+ xs={12}
172
+ sm={4}
173
+ sx={{
174
+ display: "flex",
175
+ justifyContent: "center",
176
+ alignItems: "center",
177
+ }}
178
+ >
179
+ <CookieConsentButton />
180
+ </Grid> */}
181
+ <Grid item xs={12}>
182
+ <Divider />
183
+ </Grid>
184
+ <Grid
185
+ item
186
+ xs={12}
187
+ sx={{
188
+ display: "flex",
189
+ justifyContent: "center",
190
+ alignItems: "center",
191
+ }}
192
+ >
193
+ <Typography>Made possible by Atelier Paulus</Typography>
194
+ </Grid>
195
+ </Grid>
196
+ </Toolbar>
197
+ </Container>
198
+ </AppBar>
199
+ );
200
+ }
201
+
202
+ export default Footer;
@@ -1,4 +1,4 @@
1
- 'use client';
1
+ "use client";
2
2
 
3
3
  import React from "react";
4
4
  import Link from "next/link";
@@ -14,14 +14,33 @@ import {
14
14
  List,
15
15
  ListItem,
16
16
  Divider,
17
- ListItemText
17
+ ListItemText,
18
18
  } from "@mui/material";
19
19
 
20
20
  import CloseIcon from "@mui/icons-material/Close";
21
21
  import MoreVertIcon from "@mui/icons-material/MoreVert";
22
+ import { useRouter } from "next/navigation";
22
23
 
23
- function NavBar({site_title, logo, pages}){
24
- // handleMobileMenu
24
+ import PropTypes from "prop-types";
25
+
26
+ NavBar.propTypes = {
27
+ site_title: PropTypes.string,
28
+ logo: PropTypes.shape({
29
+ url: PropTypes.string.isRequired,
30
+ width: PropTypes.string,
31
+ height: PropTypes.string,
32
+ alt: PropTypes.string,
33
+ }).isRequired,
34
+ pages: PropTypes.arrayOf(
35
+ PropTypes.shape({
36
+ name: PropTypes.string.isRequired,
37
+ url: PropTypes.string.isRequired,
38
+ })
39
+ ).isRequired,
40
+ };
41
+
42
+ function NavBar({ site_title, logo, pages }) {
43
+ // handleMobileMenu
25
44
 
26
45
  const [mobileNavOpen, setMobileNavOpen] = React.useState(false);
27
46
 
@@ -33,37 +52,43 @@ function NavBar({site_title, logo, pages}){
33
52
  setMobileNavOpen(false);
34
53
  };
35
54
 
55
+ const router = useRouter();
56
+
36
57
  return (
37
58
  <AppBar position="sticky">
38
59
  <Container maxWidth="xl">
39
- <Toolbar disableGutters sx={{py:1}}>
60
+ <Toolbar disableGutters sx={{ py: 1 }}>
40
61
  {/* logo and site title for big screens */}
41
- <Link href="/" style={{textDecoration: "none", color: "unset"}}>
62
+ <Link href="/" style={{ textDecoration: "none", color: "unset" }}>
42
63
  <Box
43
- sx={{ display: { xs: "none", md: "flex" }, cursor: "pointer", alignItems: "center"}}
44
- ><Box sx={{ display: "flex", mr: 1 }}>
45
- <img
46
- src={logo.url}
47
- width={logo.width || "32px"}
48
- height={logo.height || "32px"}
49
- alt="site logo"
50
- style={{maxWidth: "60px", maxHeight: "60px"}}
51
- />
52
- </Box>
53
- {site_title !== undefined && (
54
- <Typography
55
-
56
- variant="h6"
57
- noWrap
58
- component="h1"
59
- sx={{
60
- display: "flex",
61
- textDecoration: "none",
62
- }}
63
- >
64
- {site_title}
65
- </Typography>
66
- )}
64
+ sx={{
65
+ display: { xs: "none", md: "flex" },
66
+ cursor: "pointer",
67
+ alignItems: "center",
68
+ }}
69
+ >
70
+ <Box sx={{ display: "flex", mr: 1 }}>
71
+ <img
72
+ src={logo.url}
73
+ width={logo.width || "32px"}
74
+ height={logo.height || "32px"}
75
+ alt="site logo"
76
+ style={{ maxWidth: "60px", maxHeight: "60px" }}
77
+ />
78
+ </Box>
79
+ {site_title !== undefined && (
80
+ <Typography
81
+ variant="h6"
82
+ noWrap
83
+ component="h1"
84
+ sx={{
85
+ display: "flex",
86
+ textDecoration: "none",
87
+ }}
88
+ >
89
+ {site_title}
90
+ </Typography>
91
+ )}
67
92
  </Box>
68
93
  </Link>
69
94
 
@@ -75,49 +100,58 @@ function NavBar({site_title, logo, pages}){
75
100
  alignItems: "center",
76
101
  }}
77
102
  >
78
-
79
-
80
103
  {pages.map((page) => {
81
104
  return (
82
- <Button
83
- key={page.name}
84
- /* onClick={() => page.action()} */
85
- sx={{ my: 2, color: "primary.contrastText", display: "block" }}
86
- >
87
- {page.name}
88
- </Button>
89
- )})}
90
-
105
+ <Button
106
+ key={page.name}
107
+ onClick={() => {
108
+ router.push(page.url);
109
+ }}
110
+ sx={{
111
+ my: 2,
112
+ color: "primary.contrastText",
113
+ display: "block",
114
+ }}
115
+ >
116
+ {page.name}
117
+ </Button>
118
+ );
119
+ })}
91
120
  </Box>
92
121
 
93
122
  {/* small screen logo and site title */}
94
- <Link href="/" style={{textDecoration: "none", color: "unset"}}>
95
- <Box sx={{ display: { xs: "flex", md: "none" }, alignItems:"center"}}>
96
-
97
- {logo.url !== undefined && <Box sx={{ display: "flex", mr: 1 }}>
123
+ <Link href="/" style={{ textDecoration: "none", color: "unset" }}>
124
+ <Box
125
+ sx={{ display: { xs: "flex", md: "none" }, alignItems: "center" }}
126
+ >
127
+ {logo.url !== undefined && (
128
+ <Box sx={{ display: "flex", mr: 1 }}>
98
129
  <img
99
130
  src={logo.url}
100
131
  width={logo.width || "32px"}
101
132
  height={logo.height || "32px"}
102
133
  alt={logo.alt || "site logo"}
103
- style={{maxWidth: "60px", maxHeight: "60px"}}
134
+ style={{ maxWidth: "60px", maxHeight: "60px" }}
104
135
  />
105
- </Box>}
106
- {site_title !== undefined && <Typography
107
- variant="h5"
108
- noWrap
109
- component="h1"
110
- sx={{
111
- display: "flex",
112
- flexGrow: 1,
113
- }}
114
- >
115
- {site_title}
116
- </Typography>}
136
+ </Box>
137
+ )}
138
+ {site_title !== undefined && (
139
+ <Typography
140
+ variant="h5"
141
+ noWrap
142
+ component="h1"
143
+ sx={{
144
+ display: "flex",
145
+ flexGrow: 1,
146
+ }}
147
+ >
148
+ {site_title}
149
+ </Typography>
150
+ )}
117
151
  </Box>
118
152
  </Link>
119
153
  {/* spacer box */}
120
- <Box sx={{ display: { xs: "flex", md: "none" }, flexGrow: 1 }}></Box>
154
+ <Box sx={{ display: { xs: "flex", md: "none" }, flexGrow: 1 }}></Box>
121
155
 
122
156
  {/* small screen nav menu */}
123
157
 
@@ -145,33 +179,43 @@ function NavBar({site_title, logo, pages}){
145
179
  >
146
180
  <AppBar position="sticky">
147
181
  <Container maxWidth="xl">
148
- <Toolbar disableGutters sx={{py:1, justifyContent:"space-between"}}>
149
- <Link href="/" style={{textDecoration: "none", color: "unset"}}>
150
- <Box sx={{display: "flex", flexDirection: "row", alignItems: "center"}}>
151
- <Box sx={{ display: "flex", mr: 1 }}>
152
- <img
153
- src={logo.url}
154
- alt={logo.alt || "logo"}
155
- width={logo.width || "32px"}
156
- height={logo.height || "32px"}
157
- style={{maxWidth: "60px", maxHeight: "60px"}}
158
- />
159
- </Box>
160
- <Typography
161
- variant="h5"
162
- noWrap
163
- component="h1"
164
- sx={{
165
- display: "flex",
166
- flexGrow: 1,
167
- }}
182
+ <Toolbar
183
+ disableGutters
184
+ sx={{ py: 1, justifyContent: "space-between" }}
185
+ >
186
+ <Link
187
+ href="/"
188
+ style={{ textDecoration: "none", color: "unset" }}
168
189
  >
169
-
170
- {site_title !== undefined && site_title}
171
-
172
- </Typography>
173
- </Box>
174
- </Link>
190
+ <Box
191
+ sx={{
192
+ display: "flex",
193
+ flexDirection: "row",
194
+ alignItems: "center",
195
+ }}
196
+ >
197
+ <Box sx={{ display: "flex", mr: 1 }}>
198
+ <img
199
+ src={logo.url}
200
+ alt={logo.alt || "logo"}
201
+ width={logo.width || "32px"}
202
+ height={logo.height || "32px"}
203
+ style={{ maxWidth: "60px", maxHeight: "60px" }}
204
+ />
205
+ </Box>
206
+ <Typography
207
+ variant="h5"
208
+ noWrap
209
+ component="h1"
210
+ sx={{
211
+ display: "flex",
212
+ flexGrow: 1,
213
+ }}
214
+ >
215
+ {site_title !== undefined && site_title}
216
+ </Typography>
217
+ </Box>
218
+ </Link>
175
219
  <Button
176
220
  onClick={handleCloseMobileMenu}
177
221
  sx={{
@@ -192,22 +236,22 @@ function NavBar({site_title, logo, pages}){
192
236
  </Container>
193
237
  </AppBar>
194
238
  <List>
195
- {pages.map((page) =>
196
- {
197
- return (
198
- <>
199
- <ListItem
200
- key={page.name}
201
- onClick={() => {/* page.action(); */handleCloseMobileMenu();}}
202
- >
203
- <ListItemText primary={page.name} />
204
- </ListItem>
205
- <Divider />
206
- </>
207
- )})}
208
-
209
-
210
-
239
+ {pages.map((page) => {
240
+ return (
241
+ <>
242
+ <ListItem
243
+ key={page.name}
244
+ onClick={() => {
245
+ router.push(page.url);
246
+ handleCloseMobileMenu();
247
+ }}
248
+ >
249
+ <ListItemText primary={page.name} />
250
+ </ListItem>
251
+ <Divider />
252
+ </>
253
+ );
254
+ })}
211
255
  </List>
212
256
  </Dialog>
213
257
  </Box>
@@ -17,6 +17,8 @@ function TextImageBlock({
17
17
 
18
18
  maxWidth = maxWidth || "100%";
19
19
 
20
+ /* TODO Text_content should deal with linebreaks */
21
+
20
22
  return (
21
23
  <Grid
22
24
  container
@@ -0,0 +1,72 @@
1
+ import Footer from "../components/Footer";
2
+ import React from "react";
3
+ import thumbnail from "../../public/placeholders/thumbnail_100X100.png";
4
+ import InstagramIcon from "@mui/icons-material/Instagram";
5
+ import LinkedInIcon from "@mui/icons-material/LinkedIn";
6
+ import PublicIcon from "@mui/icons-material/Public";
7
+ import TwitterIcon from "@mui/icons-material/Twitter";
8
+ import FacebookIcon from "@mui/icons-material/Facebook";
9
+
10
+ export default {
11
+ title: "UMWD/Footer",
12
+ component: Footer,
13
+ };
14
+
15
+ const Template = ({ ...args }) => {
16
+ console.log(thumbnail);
17
+ return <Footer {...args} />;
18
+ };
19
+
20
+ export const Orefs = Template.bind({});
21
+
22
+ Orefs.args = {
23
+ site_title: "Orefs",
24
+ site_logo: thumbnail.src,
25
+ company_name: "Orefs",
26
+ parent_company_name: "Orefs",
27
+ company_address: {
28
+ street: "Molenkade",
29
+ street_number: "8",
30
+ street_number_addition: "A",
31
+ postal_code: "1115AB",
32
+ city: "Duivendrecht",
33
+ },
34
+ CoC_number: "12345678",
35
+ VAT_number: "NL123456789B01",
36
+ company_socials: [
37
+ {
38
+ name: "Facebook",
39
+ url: "https://www.facebook.com/",
40
+ icon: <FacebookIcon />,
41
+ },
42
+ ],
43
+ //disclaimer_link: PropTypes.string,
44
+ //privacypolicy_link: PropTypes.string,
45
+ };
46
+
47
+ /*
48
+ Footer.propTypes = {
49
+ site_title: PropTypes.string.isRequired,
50
+ site_logo: PropTypes.string,
51
+ company_name: PropTypes.string.isRequired,
52
+ parent_company_name: PropTypes.string,
53
+ company_address: PropTypes.shape({
54
+ street: PropTypes.string,
55
+ street_number: PropTypes.string,
56
+ street_number_addition: PropTypes.string,
57
+ postal_code: PropTypes.string,
58
+ city: PropTypes.string,
59
+ }),
60
+ CoC_number: PropTypes.string.isRequired,
61
+ VAT_number: PropTypes.string.isRequired,
62
+ company_socials: PropTypes.arrayOf(
63
+ PropTypes.shape({
64
+ name: PropTypes.string.isRequired,
65
+ url: PropTypes.string.isRequired,
66
+ icon: PropTypes.elementType,
67
+ })
68
+ ),
69
+ disclaimer_link: PropTypes.string,
70
+ privacypolicy_link: PropTypes.string,
71
+ };
72
+ */
@@ -1,6 +1,6 @@
1
1
  import NavBar from "../components/NavBar";
2
2
  import React from "react";
3
- import thumbnail from "../../public/placeholders/thumbnail_100X100.png"
3
+ import thumbnail from "../../public/placeholders/thumbnail_100X100.png";
4
4
 
5
5
  export default {
6
6
  title: "UMWD/NavBar",
@@ -9,10 +9,9 @@ export default {
9
9
  };
10
10
 
11
11
  const Template = ({ ...args }) => {
12
- console.log(thumbnail)
13
- return (
14
- <NavBar {...args} />
15
- )};
12
+ console.log(thumbnail);
13
+ return <NavBar {...args} />;
14
+ };
16
15
 
17
16
  export const Orefs = Template.bind({});
18
17
 
@@ -35,5 +34,5 @@ Orefs.args = {
35
34
  link: "/contact",
36
35
  action: () => console.log("Contact"),
37
36
  },
38
- ]
37
+ ],
39
38
  };