Skip to content

Commit

Permalink
fix: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdibha committed Dec 28, 2023
1 parent 9b099d3 commit 96f69d1
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 9 deletions.
4 changes: 4 additions & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@radix-ui/react-tooltip": "^1.0.6",
"@vercel/analytics": "^1.0.1",
"cmdk": "^0.2.0",
"embla-carousel-react": "^8.0.0-rc17",
"framer-motion": "^10.12.18",
"next": "^14.0.3",
"next-auth": "^4.24.4",
Expand All @@ -57,10 +58,13 @@
"react-day-picker": "^8.10.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.47.0",
"react-resizable-panels": "^1.0.5",
"recharts": "^2.10.3",
"sharp": "^0.33.0",
"sonner": "^1.3.1",
"stripe": "^14.10.0",
"sugar-high": "^0.5.6",
"vaul": "^0.8.0",
"vfile": "^6.0.1",
"vfile-matter": "^5.0.0",
"zod": "^3.22.4"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/shadcn-ui/ui/alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as React from "react";
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
import { cn } from "@palettify/utils";
import { buttonVariants } from "@/modules/shadcn-uibutton";
import { buttonVariants } from "@/modules/shadcn-ui/ui/button";

const AlertDialog = AlertDialogPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/shadcn-ui/ui/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useEmblaCarousel, {
type EmblaPluginType as CarouselPlugin,
} from "embla-carousel-react";
import { cn } from "@palettify/utils";
import { Button } from "@/modules/shadcn-uibutton";
import { Button } from "@/modules/shadcn-ui/ui/button";

type CarouselProps = {
opts?: CarouselOptions;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/shadcn-ui/ui/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
useFormContext,
} from "react-hook-form";
import { cn } from "@palettify/utils";
import { Label } from "@/modules/shadcn-uilabel";
import { Label } from "@/modules/shadcn-ui/ui/label";

const Form = FormProvider;

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/shadcn-ui/ui/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
DotsHorizontalIcon,
} from "@radix-ui/react-icons";
import { cn } from "@palettify/utils";
import { ButtonProps, buttonVariants } from "@/modules/shadcn-uibutton";
import { ButtonProps, buttonVariants } from "@/modules/shadcn-ui/ui/button";

const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
<nav
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/modules/shadcn-ui/ui/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
ToastProvider,
ToastTitle,
ToastViewport,
} from "@/modules/shadcn-uitoast";
import { useToast } from "@/modules/shadcn-uiuse-toast";
} from "@/modules/shadcn-ui/ui/toast";
import { useToast } from "@/modules/shadcn-ui/ui/use-toast";

export function Toaster() {
const { toasts } = useToast();
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/shadcn-ui/ui/toggle-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
import { VariantProps } from "class-variance-authority";
import { cn } from "@palettify/utils";
import { toggleVariants } from "@/modules/shadcn-uitoggle";
import { toggleVariants } from "@/modules/shadcn-ui/ui/toggle";

const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({
size: "default",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/modules/shadcn-ui/ui/use-toast.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Inspired by react-hot-toast library
import * as React from "react";
import type { ToastActionElement, ToastProps } from "@/registry/default/ui/toast";
import type { ToastActionElement, ToastProps } from "@/modules/shadcn-ui/ui/toast";

const TOAST_LIMIT = 1;
const TOAST_REMOVE_DELAY = 1000000;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3537,6 +3537,24 @@ electron-to-chromium@^1.4.601:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.616.tgz#4bddbc2c76e1e9dbf449ecd5da3d8119826ea4fb"
integrity sha512-1n7zWYh8eS0L9Uy+GskE0lkBUNK83cXTVJI0pU3mGprFsbfSdAc15VTFbo+A+Bq4pwstmL30AVcEU3Fo463lNg==

embla-carousel-react@^8.0.0-rc17:
version "8.0.0-rc17"
resolved "https://registry.yarnpkg.com/embla-carousel-react/-/embla-carousel-react-8.0.0-rc17.tgz#277d4212eb95b6a29898b65660efe60d2075aa3a"
integrity sha512-x4aFprwFB+PQO9EsHHZsrDxARb0uYNBYn9mr5oDFdBdPez4M8G1r5yidWbUcT9pNUc8AQXC9sGzlfauBfBxVOw==
dependencies:
embla-carousel "8.0.0-rc17"
embla-carousel-reactive-utils "8.0.0-rc17"

embla-carousel-reactive-utils@8.0.0-rc17:
version "8.0.0-rc17"
resolved "https://registry.yarnpkg.com/embla-carousel-reactive-utils/-/embla-carousel-reactive-utils-8.0.0-rc17.tgz#a94934fdce7faa7464581d6c9f10d9e8ed63ca42"
integrity sha512-eluEOK/u5HdjYaTLC4bUG3iTCnyX7RsYix3il0aH4ZECOKa5fS+pVK2vrM17Mgw6C5Hyjcr3r3lfJtGerVzVsQ==

embla-carousel@8.0.0-rc17:
version "8.0.0-rc17"
resolved "https://registry.yarnpkg.com/embla-carousel/-/embla-carousel-8.0.0-rc17.tgz#146dc802d8742b88834ac7ea34416b0f0e983e93"
integrity sha512-evF49b88VOitvqFtlvhvKVSu96Y8A+QSFdhok87Bfm8R7OYuk95FT+o8+M1GQLi/EhGDUlT193HTVAR0Wt2neQ==

emoji-regex@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
Expand Down Expand Up @@ -6586,6 +6604,11 @@ react-remove-scroll@2.5.5:
use-callback-ref "^1.3.0"
use-sidecar "^1.1.2"

react-resizable-panels@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/react-resizable-panels/-/react-resizable-panels-1.0.5.tgz#f6274758eb5f05a3fb85a077ac55f937a4dc8d80"
integrity sha512-OP0whNQCko+f4BgoptGaeIc7StBRyeMeJ+8r/7rXACBDf9W5EcMWuM32hfqPDMenS2HFy/eZVi/r8XqK+ZIEag==

react-smooth@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/react-smooth/-/react-smooth-2.0.5.tgz#d153b7dffc7143d0c99e82db1532f8cf93f20ecd"
Expand Down Expand Up @@ -7057,6 +7080,11 @@ smartwrap@^2.0.2:
wcwidth "^1.0.1"
yargs "^15.1.0"

sonner@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/sonner/-/sonner-1.3.1.tgz#64aa2971d1110b6fe349f961d148c933f38ee9fa"
integrity sha512-+rOAO56b2eI3q5BtgljERSn2umRk63KFIvgb2ohbZ5X+Eb5u+a/7/0ZgswYqgBMg8dyl7n6OXd9KasA8QF9ToA==

sort-object-keys@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/sort-object-keys/-/sort-object-keys-1.1.3.tgz#bff833fe85cab147b34742e45863453c1e190b45"
Expand Down Expand Up @@ -7892,6 +7920,13 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"

vaul@^0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/vaul/-/vaul-0.8.0.tgz#f2155dcb5561d33df4f0794603e91e35672a8d58"
integrity sha512-9nUU2jIObJvJZxeQU1oVr/syKo5XqbRoOMoTEt0hHlWify4QZFlqTh6QSN/yxoKzNrMeEQzxbc3XC/vkPLOIqw==
dependencies:
"@radix-ui/react-dialog" "^1.0.4"

vfile-matter@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/vfile-matter/-/vfile-matter-3.0.1.tgz#85e26088e43aa85c04d42ffa3693635fa2bc5624"
Expand Down

0 comments on commit 96f69d1

Please sign in to comment.