feat: export years to reuse
This commit is contained in:
parent
d84b24ea50
commit
fd767e1d45
|
@ -15,3 +15,20 @@ export const BAD_NETWORK_TEXT = 'Network Latency is high.'
|
|||
export const KEYSTORE_FILES = 'KeystoreFiles'
|
||||
export const RECOVERY_PHRASE = 'Recovery Phrase'
|
||||
export const BOTH_KEY_AND_RECOVERY = 'Both KeystoreFiles & Recovery Phrase'
|
||||
|
||||
/* Dashboard */
|
||||
|
||||
export const years = [
|
||||
'JAN',
|
||||
'FEB',
|
||||
'MAR',
|
||||
'APR',
|
||||
'MAY',
|
||||
'JUN',
|
||||
'JUL',
|
||||
'AUG',
|
||||
'SEPT',
|
||||
'OCT',
|
||||
'NOV',
|
||||
'DEC',
|
||||
]
|
||||
|
|
|
@ -7,9 +7,9 @@ import { DateRange } from 'react-day-picker'
|
|||
import DashboardCardWrapper from '../DashboardCardWrapper'
|
||||
import LineChart from './LineChart'
|
||||
import Icon from '../../../components/General/Icon'
|
||||
import { years } from '../../../constants'
|
||||
import './calendar.css'
|
||||
|
||||
const years = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEPT', 'OCT', 'NOV', 'DEC']
|
||||
const userGains = [
|
||||
10000, 15000, 17500, 20000, 19000, 23222, 25000, 20000, 20000, 21000, 22300, 21000,
|
||||
]
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import LineChart from './LineChart'
|
||||
import { Stack } from 'tamagui'
|
||||
import { years } from '../../../constants'
|
||||
|
||||
const years = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEPT', 'OCT', 'NOV', 'DEC']
|
||||
const userGains = [10000, 15000, 17500, 20000, 19000, 23222, 25000, 20000, 20000, 21000, 22300, 21000]
|
||||
const userGains = [
|
||||
10000, 15000, 17500, 20000, 19000, 23222, 25000, 20000, 20000, 21000, 22300, 21000,
|
||||
]
|
||||
|
||||
const meta = {
|
||||
title: 'Dashboard/LineChart',
|
||||
|
@ -12,13 +14,13 @@ const meta = {
|
|||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
decorators: [StoryObj =>
|
||||
(
|
||||
decorators: [
|
||||
StoryObj => (
|
||||
<Stack width={'536px'}>
|
||||
<StoryObj />,
|
||||
</Stack>
|
||||
)
|
||||
]
|
||||
),
|
||||
],
|
||||
} satisfies Meta<typeof LineChart>
|
||||
|
||||
export default meta
|
||||
|
|
Loading…
Reference in New Issue