mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-11 22:51:05 +00:00
fixed some import bugs
This commit is contained in:
parent
75a23bbe54
commit
4478a4e248
1 changed files with 4 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import React, { useState, useEffect, useRef } from "react";
|
|||
|
||||
import { motion } from "framer-motion";
|
||||
import { cn } from "@repo/ui/lib/utils";
|
||||
import { Twitter } from "@repo/ui/src/components/icons";
|
||||
import { Twitter } from "@repo/ui/components/icons";
|
||||
import LinkArrow from "./linkArrow";
|
||||
|
||||
export function TwitterBorder() {
|
||||
|
|
@ -55,6 +55,9 @@ export function HoverBorderGradient({
|
|||
const nextIndex = clockwise
|
||||
? (currentIndex - 1 + directions.length) % directions.length
|
||||
: (currentIndex + 1) % directions.length;
|
||||
if (!directions[nextIndex]) {
|
||||
return directions[0]!;
|
||||
}
|
||||
return directions[nextIndex];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue