Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
resir014 committed Dec 3, 2024
1 parent 07da502 commit 20b06b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
27 changes: 0 additions & 27 deletions src/modules/pre-stream-scene/shared/utils/deep-dip.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PreStreamVariants } from '~/modules/pre-stream/types';
import type { PreStreamVariants } from '~/@pre-stream/shared/types';

export function getPrestreamAccentColor(variant: PreStreamVariants = 'pre-stream') {
switch (variant) {
Expand Down Expand Up @@ -26,12 +26,6 @@ export function getPrestreamAccentColor(variant: PreStreamVariants = 'pre-stream
border: 'border-chungking-magenta-500',
};
}
case 'nye': {
return {
bg: 'bg-chungking-turquoise-500',
border: 'border-chungking-turquoise-500',
};
}
default: {
return {
bg: 'bg-chungking-blue-500',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useMemo } from 'react';
import { useClock } from '~/lib/hooks/use-clock';
import { useOverlayData } from '~/lib/trpc/notion';
import type { PreStreamVariants } from '../types';
import type { PreStreamVariants } from '~/@pre-stream/shared/types';

export function useAnimateStart(variant: PreStreamVariants = 'pre-stream') {
const time = useClock();
Expand All @@ -15,7 +15,7 @@ export function useAnimateStart(variant: PreStreamVariants = 'pre-stream') {
);

const isAnimationActive = useMemo(() => {
if (variant !== 'pre-stream' && variant !== 'pre-stream-cerveza') {
if (variant !== 'pre-stream') {
return false;
}

Expand Down

0 comments on commit 20b06b0

Please sign in to comment.