lock
This commit is contained in:
parent
4c33270ce9
commit
0271956337
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { adminApiClient } from './client'
|
import { adminApiClient } from './client'
|
||||||
import type { AuthResponse, RequestCodeResponse, CodeStatusResponse, RefreshTokenResponse } from '@/types/models'
|
import type { AuthResponse, CodeStatusResponse, RefreshTokenResponse } from '@/types/models'
|
||||||
import type { AxiosError } from 'axios'
|
import type { AxiosError } from 'axios'
|
||||||
|
|
||||||
export const authApi = {
|
export const authApi = {
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ export default function DashboardPage() {
|
||||||
<YAxis />
|
<YAxis />
|
||||||
<Tooltip
|
<Tooltip
|
||||||
labelFormatter={(value) => new Date(value).toLocaleDateString()}
|
labelFormatter={(value) => new Date(value).toLocaleDateString()}
|
||||||
formatter={(value: number) => [value, 'Registrations']}
|
formatter={(value: number | undefined) => [value ?? 0, 'Registrations']}
|
||||||
/>
|
/>
|
||||||
<Line
|
<Line
|
||||||
type="monotone"
|
type="monotone"
|
||||||
|
|
@ -174,7 +174,7 @@ export default function DashboardPage() {
|
||||||
<YAxis />
|
<YAxis />
|
||||||
<Tooltip
|
<Tooltip
|
||||||
labelFormatter={(value) => new Date(value).toLocaleDateString()}
|
labelFormatter={(value) => new Date(value).toLocaleDateString()}
|
||||||
formatter={(value: number) => [`$${value}`, 'Revenue']}
|
formatter={(value: number | undefined) => [`$${value ?? 0}`, 'Revenue']}
|
||||||
/>
|
/>
|
||||||
<Bar dataKey="revenue" fill="#82ca9d" />
|
<Bar dataKey="revenue" fill="#82ca9d" />
|
||||||
</BarChart>
|
</BarChart>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue