Skip to content

Commit bd4cf35

Browse files
committed
fix: linting and code quality issues
1 parent ea72b34 commit bd4cf35

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/app/components/Graphics/CrosshairCorners.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22
import classNames from "classnames";
3-
import { anticipate, motion } from "motion/react";
3+
import { motion } from "motion/react";
44

55
export default function CrosshairCorners({
66
size = 10,
@@ -45,7 +45,7 @@ export default function CrosshairCorners({
4545
}}
4646
transition={{
4747
duration: animationDuration,
48-
ease: anticipate,
48+
ease: "anticipate",
4949
delay: baseDelay,
5050
}}
5151
style={

src/app/components/Header/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function HeaderContent() {
2323
const t = useTranslations();
2424
const currentLocale = useLocale();
2525
const { locales } = routing;
26-
const { marketingBannerViewed, setMarketingBannerViewed, _hasHydrated } =
26+
const { marketingBannerViewed, _hasHydrated } =
2727
usePersistentStore();
2828

2929
const router = useRouter();
@@ -199,7 +199,7 @@ export default function HeaderContent() {
199199
<motion.div
200200
className="before:absolute before:-left-36 before:top-0 before:w-36 before:h-full before:bg-gradient-to-r before:from-transparent before:to-background before:z-10 justify-between left-0 flex md:hidden absolute w-full h-full z-10 bg-background py-3 px-4"
201201
initial={{ x: "100dvw" }}
202-
animate={{ x: isOpen ? 0 : "0dvw" }}
202+
animate={{ x: 0 }}
203203
exit={{ x: "100dvw" }}
204204
transition={{ duration: 0.15, easing: anticipate }}
205205
>

src/app/components/Icon/icons/DepletingHeart.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { anticipate } from "motion";
2-
import { motion } from "motion/react";
1+
import { anticipate, motion } from "motion/react";
32

43
export default function DepletingHeart({
54
closeHeart = false,

src/app/components/MarketingBanner/MarketingBanner.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client";
2-
import { AnimatePresence, anticipate, easeInOut, motion } from "motion/react";
2+
import { AnimatePresence, anticipate, motion } from "motion/react";
33
import CrosshairCorners from "../Graphics/CrosshairCorners";
44
import { useTranslations } from "next-intl";
55
import Icon from "../Icon/Icon";
@@ -50,6 +50,7 @@ export default function MarketingBanner() {
5050
<a
5151
href={process.env.NEXT_PUBLIC_STAKING_URL}
5252
target="_blank"
53+
rel="noopener noreferrer"
5354
className="text-brand-primary underline"
5455
>
5556
staking
@@ -75,7 +76,7 @@ export default function MarketingBanner() {
7576
</motion.div>
7677
<button
7778
onClick={() => handleCloseBanner()}
78-
className="z-10 text-brand-secondary transition hover:text-brand-primary hover:cursor-pointer h-[32px] w-[32px] flex items-center justify-center absolute right-3 top-1/2 -translate-y-1/2 bg-background/60 sm:bg-transparent hover:bg-background/60 transition"
79+
className="z-10 text-brand-secondary transition hover:text-brand-primary hover:cursor-pointer h-[32px] w-[32px] flex items-center justify-center absolute right-3 top-1/2 -translate-y-1/2 bg-background/60 sm:bg-transparent hover:bg-background/60"
7980
>
8081
<Icon name="Close" size={16 as 18} />
8182
</button>

src/stores/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const migrate = (
128128

129129
export const usePersistentStore = create<PersistentStore>()(
130130
persist(
131-
(set, get) => ({
131+
(set) => ({
132132
// User's View Preference
133133
view: "grid",
134134
setView: (view) => set({ view }),

0 commit comments

Comments
 (0)