feat: export years to reuse

This commit is contained in:
RadoslavDimchev 2023-09-15 20:48:36 +03:00
parent d84b24ea50
commit fd767e1d45
3 changed files with 36 additions and 17 deletions

View File

@ -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',
]

View File

@ -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,
]

View File

@ -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