diff --git a/.storybook/main.js b/.storybook/main.js
index 77b8003..2d54e08 100644
--- a/.storybook/main.js
+++ b/.storybook/main.js
@@ -1,16 +1,15 @@
module.exports = {
- "stories": [
- "../src/**/*.stories.mdx",
- "../src/**/*.stories.@(js|jsx|ts|tsx)"
- ],
- "addons": [
+ stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
+ addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
- "@storybook/addon-interactions"
+ "@storybook/addon-interactions",
+ "storybook-addon-next-router",
],
- "framework": "@storybook/react",
- "core": {
- "builder": "@storybook/builder-webpack5",
- "disableTelemetry": true
- }
-}
\ No newline at end of file
+ framework: "@storybook/react",
+ core: {
+ builder: "@storybook/builder-webpack5",
+ disableTelemetry: true,
+ },
+ staticDirs: ["../public"],
+};
diff --git a/.storybook/preview.js b/.storybook/preview.js
index 48afd56..026edfb 100644
--- a/.storybook/preview.js
+++ b/.storybook/preview.js
@@ -1,3 +1,5 @@
+import { RouterContext } from "next/dist/shared/lib/router-context"; // next 12
+
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
@@ -6,4 +8,12 @@ export const parameters = {
date: /Date$/,
},
},
-}
\ No newline at end of file
+ nextRouter: {
+ Provider: RouterContext.Provider,
+ asPath: "/",
+ pathname: "/",
+ query: {},
+ route: "/",
+ push() {}
+ },
+};
diff --git a/package.json b/package.json
index 533f54b..2114e62 100644
--- a/package.json
+++ b/package.json
@@ -34,6 +34,7 @@
"eslint-config-next": "12.2.0",
"eslint-plugin-storybook": "^0.5.13",
"prettier": "^2.7.1",
+ "storybook-addon-next-router": "^4.0.0",
"typescript": "4.7.4"
}
}
diff --git a/public/icons/calendar.svg b/public/icons/calendar.svg
new file mode 100644
index 0000000..c22b367
--- /dev/null
+++ b/public/icons/calendar.svg
@@ -0,0 +1,11 @@
+
+
+
diff --git a/public/icons/check.svg b/public/icons/check.svg
new file mode 100644
index 0000000..8b703e6
--- /dev/null
+++ b/public/icons/check.svg
@@ -0,0 +1,6 @@
+
+
+
diff --git a/public/icons/home.svg b/public/icons/home.svg
new file mode 100644
index 0000000..d08b7da
--- /dev/null
+++ b/public/icons/home.svg
@@ -0,0 +1,8 @@
+
+
+
diff --git a/public/icons/icons-license.txt b/public/icons/icons-license.txt
new file mode 100644
index 0000000..1f192ee
--- /dev/null
+++ b/public/icons/icons-license.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020-2022 Paweł Kuna
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/src/components/ExpressionCard/ExpressionCard.tsx b/src/components/ExpressionCard/ExpressionCard.tsx
index 5d2abc3..1e3afbc 100644
--- a/src/components/ExpressionCard/ExpressionCard.tsx
+++ b/src/components/ExpressionCard/ExpressionCard.tsx
@@ -16,7 +16,9 @@ export function ExpressionCard({
return (