diff --git a/src/features/shared/components/DynamicImage.tsx b/src/features/shared/components/DynamicImage.tsx
index 06c68378..1c5d23c6 100644
--- a/src/features/shared/components/DynamicImage.tsx
+++ b/src/features/shared/components/DynamicImage.tsx
@@ -1,5 +1,9 @@
import classNames from 'classnames';
-import { FunctionComponent, useState } from 'react';
+import {
+ type FunctionComponent,
+ type MouseEventHandler,
+ useState,
+} from 'react';
type DynamicImageProps = {
src: string;
@@ -8,6 +12,7 @@ type DynamicImageProps = {
loading?: boolean;
width?: number;
height?: number;
+ onClick?: MouseEventHandler
;
};
const DynamicImage: FunctionComponent = ({
@@ -17,6 +22,7 @@ const DynamicImage: FunctionComponent = ({
src,
alt,
loading = false,
+ onClick,
}) => {
const [min, setMin] = useState(true);
const handleMinClick = () => setMin(!min);
@@ -30,7 +36,14 @@ const DynamicImage: FunctionComponent = ({
style={{ width, height }}
>
-
+
);
};
diff --git a/src/features/styles/common.scss b/src/features/styles/common.scss
index 83a69ef4..4d910ce2 100644
--- a/src/features/styles/common.scss
+++ b/src/features/styles/common.scss
@@ -75,6 +75,10 @@ $target: #e73c7e;
font-size: 3rem;
}
}
+
+ .zoom {
+ cursor: zoom-in;
+ }
}
.dynamic-image.min {
diff --git a/tsconfig.json b/tsconfig.json
index 651efd36..7e9bb512 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,7 +2,11 @@
"display": "blog",
"compilerOptions": {
"target": "ES2017",
- "lib": ["dom", "dom.iterable", "esnext"],
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
"allowJs": false,
"skipLibCheck": true,
"strict": false,
@@ -17,8 +21,12 @@
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
- "~/*": ["src/features/*"],
- "~/app/*": ["src/app/*"]
+ "~/*": [
+ "src/features/*"
+ ],
+ "~/app/*": [
+ "src/app/*"
+ ]
},
"plugins": [
{
@@ -33,5 +41,7 @@
"e2e/**/*.ts",
".next/types/**/*.ts"
],
- "exclude": ["node_modules"]
+ "exclude": [
+ "node_modules"
+ ]
}