Client - refactor

This commit is contained in:
Sam
2021-10-30 12:01:55 +02:00
parent b695d665d2
commit 1911b03db5
34 changed files with 73 additions and 73 deletions

View File

@ -68,7 +68,7 @@
TStatisticsFromApi,
IStatisticsParams,
} from '@/types/statistics'
import { IAuthUserProfile } from '@/types/user'
import { IUserProfile } from '@/types/user'
import { useStore } from '@/use/useStore'
import { formatStats } from '@/utils/statistics'
@ -83,7 +83,7 @@
required: true,
},
user: {
type: Object as PropType<IAuthUserProfile>,
type: Object as PropType<IUserProfile>,
required: true,
},
chartParams: {
@ -140,7 +140,7 @@
}
function getApiParams(
chartParams: IStatisticsDateParams,
user: IAuthUserProfile
user: IUserProfile
): IStatisticsParams {
return {
from: format(chartParams.start, 'yyyy-MM-dd'),