Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(web): use shared Rive module in pricing art components

Richie McIlroy0edd376d88d0
diff --git a/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx b/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx
index 277ea937c..0be73f590 100644
--- a/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx
+++ b/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx
@@ -1,6 +1,6 @@
import { classNames } from "@cap/utils";
-import { Alignment, Fit, Layout, useRive } from "@rive-app/react-canvas";
import { forwardRef, memo, useImperativeHandle } from "react";
+import { Alignment, Fit, Layout, useRive } from "@/lib/rive";
export interface CommercialArtRef {
playHoverAnimation: () => void;
diff --git a/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsx b/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsx
index 2cb173c0f..7129dfea8 100644
--- a/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsx
+++ b/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsx
@@ -1,6 +1,6 @@
import { classNames } from "@cap/utils";
-import { Alignment, Fit, Layout, useRive } from "@rive-app/react-canvas";
import { forwardRef, memo, useImperativeHandle } from "react";
+import { Alignment, Fit, Layout, useRive } from "@/lib/rive";
export interface EnterpriseArtRef {
playHoverAnimation: () => void;
diff --git a/apps/web/components/pages/HomePage/Pricing/ProArt.tsx b/apps/web/components/pages/HomePage/Pricing/ProArt.tsx
index 12e9e80de..61e13395d 100644
--- a/apps/web/components/pages/HomePage/Pricing/ProArt.tsx
+++ b/apps/web/components/pages/HomePage/Pricing/ProArt.tsx
@@ -1,6 +1,6 @@
import { classNames } from "@cap/utils";
-import { Alignment, Fit, Layout, useRive } from "@rive-app/react-canvas";
import { forwardRef, memo, useImperativeHandle } from "react";
+import { Alignment, Fit, Layout, useRive } from "@/lib/rive";
export interface ProArtRef {
playHoverAnimation: () => void;