oh lord. prettier eslint and all that
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
* We also create a few inference helpers for input and output types.
|
||||
*/
|
||||
import { toast } from '@/components/ui/use-toast';
|
||||
import { type AppRouter } from '@/server/api/root';
|
||||
import { httpLink, loggerLink, type TRPCClientErrorBase } from '@trpc/client';
|
||||
import type { AppRouter } from '@/server/api/root';
|
||||
import { httpLink, loggerLink } from '@trpc/client';
|
||||
import type { TRPCClientErrorBase } from '@trpc/client';
|
||||
import { createTRPCNext } from '@trpc/next';
|
||||
import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server';
|
||||
import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
|
||||
import superjson from 'superjson';
|
||||
|
||||
const getBaseUrl = () => {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { clsx, type ClassValue } from 'clsx';
|
||||
import { clsx } from 'clsx';
|
||||
import type { ClassValue } from 'clsx';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type IChartRange } from '@/types';
|
||||
import type { IChartRange } from '@/types';
|
||||
|
||||
import { timeRanges } from './constants';
|
||||
|
||||
|
||||
@@ -2,13 +2,12 @@ import resolveConfig from 'tailwindcss/resolveConfig';
|
||||
|
||||
import tailwinConfig from '../../tailwind.config';
|
||||
|
||||
// @ts-expect-error
|
||||
const config = resolveConfig(tailwinConfig);
|
||||
const config = resolveConfig<any>(tailwinConfig);
|
||||
|
||||
export const theme = config.theme as any;
|
||||
export const theme = config.theme;
|
||||
|
||||
export function getChartColor(index: number): string {
|
||||
const chartColors: string[] = Object.keys(theme?.colors ?? {})
|
||||
const chartColors: string[] = Object.keys(theme.colors ?? {})
|
||||
.filter((key) => key.startsWith('chart-'))
|
||||
.map((key) => theme.colors[key] as string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user