diff --git a/apps/web/src/components/date-card.tsx b/apps/web/src/components/date-card.tsx index 53ff588e0..dd471d0aa 100644 --- a/apps/web/src/components/date-card.tsx +++ b/apps/web/src/components/date-card.tsx @@ -1,4 +1,4 @@ -import clsx from "clsx"; +import { cn } from "@rallly/ui"; import * as React from "react"; export interface DateCardProps { @@ -15,7 +15,7 @@ const DateCard: React.FunctionComponent = ({ }) => { return (
{ return (
= ({ return (
= ({ } } }} - className={clsx( + className={cn( "group relative flex h-full w-full items-start justify-end rounded-none px-2.5 py-1.5 text-sm font-medium tracking-tight focus:z-10 focus:rounded", { "bg-gray-100 text-gray-400": day.isPast, @@ -208,7 +207,7 @@ const MonthCalendar: React.FunctionComponent = ({
diff --git a/apps/web/src/components/new-participant-modal.tsx b/apps/web/src/components/new-participant-modal.tsx index 8ffbe2f96..83cbb521b 100644 --- a/apps/web/src/components/new-participant-modal.tsx +++ b/apps/web/src/components/new-participant-modal.tsx @@ -1,12 +1,12 @@ import { zodResolver } from "@hookform/resolvers/zod"; import type { VoteType } from "@rallly/database"; +import { cn } from "@rallly/ui"; import { Badge } from "@rallly/ui/badge"; import { Button } from "@rallly/ui/button"; import { FormMessage } from "@rallly/ui/form"; import { Input } from "@rallly/ui/input"; import * as Sentry from "@sentry/nextjs"; import { TRPCClientError } from "@trpc/client"; -import clsx from "clsx"; import { useTranslation } from "next-i18next"; import { useForm } from "react-hook-form"; import z from "zod"; @@ -59,7 +59,7 @@ const VoteSummary = ({ return (
{voteTypes.map((voteType) => { const votes = voteByType[voteType]; diff --git a/apps/web/src/components/poll/mobile-poll/grouped-options.tsx b/apps/web/src/components/poll/mobile-poll/grouped-options.tsx index 7d99f6fdf..449239099 100644 --- a/apps/web/src/components/poll/mobile-poll/grouped-options.tsx +++ b/apps/web/src/components/poll/mobile-poll/grouped-options.tsx @@ -1,4 +1,4 @@ -import clsx from "clsx"; +import { cn } from "@rallly/ui"; import { groupBy } from "lodash"; import * as React from "react"; @@ -28,7 +28,7 @@ const GroupedOptions: React.FunctionComponent = ({ return (
{ return ( = ({ const { t } = useTranslation(); return ( -
+
{t("stepSummary", { current: current + 1, @@ -28,7 +28,7 @@ const Steps: React.FunctionComponent = ({ return ( current, "ring-primary-200 animate-pulse ring-4": i === current, diff --git a/apps/web/src/components/sticky.tsx b/apps/web/src/components/sticky.tsx index 11e741e54..c4eaa013d 100644 --- a/apps/web/src/components/sticky.tsx +++ b/apps/web/src/components/sticky.tsx @@ -1,4 +1,4 @@ -import clsx from "clsx"; +import { cn } from "@rallly/ui"; import React from "react"; export const useDetectSticky = ( @@ -35,7 +35,7 @@ export const Sticky: React.FunctionComponent<{ return (