🧹 clean up duty 🧹
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
import { api } from '@/trpc/client';
|
||||
|
||||
export function useEventNames(projectId: string) {
|
||||
const query = api.chart.events.useQuery({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
import { api } from '@/trpc/client';
|
||||
|
||||
export function useEventProperties(projectId: string, event?: string) {
|
||||
const query = api.chart.properties.useQuery({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
import { api } from '@/trpc/client';
|
||||
|
||||
export function useEventValues(
|
||||
projectId: string,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
import { api } from '@/trpc/client';
|
||||
|
||||
export function useProfileProperties(projectId: string) {
|
||||
const query = api.profile.properties.useQuery({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
import { api } from '@/trpc/client';
|
||||
|
||||
export function useProfileValues(projectId: string, property: string) {
|
||||
const query = api.profile.values.useQuery({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useMemo } from 'react';
|
||||
import type { IChartData, IChartSerieDataItem } from '@/app/_trpc/client';
|
||||
import type { IChartData, IChartSerieDataItem } from '@/trpc/client';
|
||||
import { getChartColor } from '@/utils/theme';
|
||||
|
||||
export type IRechartPayloadItem = IChartSerieDataItem & { color: string };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import type { IChartData } from '@/app/_trpc/client';
|
||||
import type { IChartData } from '@/trpc/client';
|
||||
|
||||
export type IVisibleSeries = ReturnType<typeof useVisibleSeries>['series'];
|
||||
export function useVisibleSeries(data: IChartData, limit?: number | undefined) {
|
||||
|
||||
Reference in New Issue
Block a user