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 type { AuthResponse, RequestCodeResponse, CodeStatusResponse, RefreshTokenResponse } from '@/types/models'
|
||||
import type { AuthResponse, CodeStatusResponse, RefreshTokenResponse } from '@/types/models'
|
||||
import type { AxiosError } from 'axios'
|
||||
|
||||
export const authApi = {
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ export default function DashboardPage() {
|
|||
<YAxis />
|
||||
<Tooltip
|
||||
labelFormatter={(value) => new Date(value).toLocaleDateString()}
|
||||
formatter={(value: number) => [value, 'Registrations']}
|
||||
formatter={(value: number | undefined) => [value ?? 0, 'Registrations']}
|
||||
/>
|
||||
<Line
|
||||
type="monotone"
|
||||
|
|
@ -174,7 +174,7 @@ export default function DashboardPage() {
|
|||
<YAxis />
|
||||
<Tooltip
|
||||
labelFormatter={(value) => new Date(value).toLocaleDateString()}
|
||||
formatter={(value: number) => [`$${value}`, 'Revenue']}
|
||||
formatter={(value: number | undefined) => [`$${value ?? 0}`, 'Revenue']}
|
||||
/>
|
||||
<Bar dataKey="revenue" fill="#82ca9d" />
|
||||
</BarChart>
|
||||
|
|
|
|||
Loading…
Reference in a new issue