File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed
src/components/TranslationChartImage Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { Meta , StoryObj } from "@storybook/react"
2
+
3
+ import TranslationChartImageComponent from "."
4
+
5
+ const meta = {
6
+ title : "Atoms / Media & Icons / TranslationChartImage" ,
7
+ component : TranslationChartImageComponent ,
8
+ parameters : {
9
+ layout : "fullscreen" ,
10
+ } ,
11
+ decorators : [
12
+ ( Story ) => (
13
+ < div className = "max-w-3xl" >
14
+ < Story />
15
+ </ div >
16
+ ) ,
17
+ ] ,
18
+ } satisfies Meta < typeof TranslationChartImageComponent >
19
+
20
+ export default meta
21
+
22
+ type Story = StoryObj < typeof meta >
23
+
24
+ export const TranslationChartImage : Story = { }
Original file line number Diff line number Diff line change 1
1
import { useColorModeValue } from "@chakra-ui/react"
2
2
3
- import { Image } from "@/components/Image"
3
+ import { TwImage } from "@/components/Image"
4
4
5
5
import pageviewsDark from "@/public/images/translation-program/pageviews-dark.png"
6
6
import pageviewsLight from "@/public/images/translation-program/pageviews-light.png"
@@ -9,13 +9,10 @@ const TranslationChartImage = () => {
9
9
const ethImage = useColorModeValue ( pageviewsLight , pageviewsDark )
10
10
11
11
return (
12
- < Image
12
+ < TwImage
13
13
src = { ethImage }
14
14
alt = ""
15
- style = { { objectFit : "contain" } }
16
- minW = "263px"
17
- h = { 500 }
18
- w = "auto"
15
+ className = "h-[500px] w-auto min-w-[263px] object-contain"
19
16
/>
20
17
)
21
18
}
You can’t perform that action at this time.
0 commit comments