diff --git a/src/utils/actions.ts b/src/app/actions.ts similarity index 90% rename from src/utils/actions.ts rename to src/app/actions.ts index 367e044d..f8509a4e 100644 --- a/src/utils/actions.ts +++ b/src/app/actions.ts @@ -2,11 +2,11 @@ /* eslint-disable @typescript-eslint/require-await */ import { isDate } from 'util/types'; -import { order, type eventParamsSchema } from './eventFilter'; import { redirect } from 'next/navigation'; import { parse } from 'date-fns'; -import EncodeParams from './encodeParams'; import { z } from 'zod'; +import { type eventParamsSchema, order } from '@src/utils/eventFilter'; +import EncodeParams from '@src/utils/encodeParams'; export async function eventTimeUpdate( queryParams: eventParamsSchema, diff --git a/src/components/events/DateBrowser.tsx b/src/components/events/DateBrowser.tsx index 018493d1..20d7d86e 100644 --- a/src/components/events/DateBrowser.tsx +++ b/src/components/events/DateBrowser.tsx @@ -12,8 +12,8 @@ import { } from '@radix-ui/react-popover'; import { addDays, subDays } from 'date-fns'; import { type eventParamsSchema } from '@src/utils/eventFilter'; -import { eventTimeUpdate } from '@src/utils/actions'; import { useEffect, useRef } from 'react'; +import { eventTimeUpdate } from '@src/app/actions'; const DateBrowser = ({ filterState }: { filterState: eventParamsSchema }) => { const changeTime = eventTimeUpdate.bind(null, filterState); const { inputProps, dayPickerProps, setSelected } = useInput({ diff --git a/src/components/events/EventSidebar.tsx b/src/components/events/EventSidebar.tsx index 05bfc886..37078a67 100644 --- a/src/components/events/EventSidebar.tsx +++ b/src/components/events/EventSidebar.tsx @@ -9,7 +9,7 @@ import { api } from '@src/trpc/react'; import { type eventParamsSchema, order } from '@src/utils/eventFilter'; import { useEffect, useRef, useState } from 'react'; import { ExpandLess, ExpandMore } from '@src/icons/Icons'; -import { eventFilterUpdate } from '@src/utils/actions'; +import { eventFilterUpdate } from '@src/app/actions'; export const basicFilters = [ 'Upcoming Events',