From ba32d203d06c37488482c7f59f39bf52f19879ac Mon Sep 17 00:00:00 2001 From: turbocrime Date: Tue, 9 Jul 2024 21:14:30 -0700 Subject: [PATCH] unfixable --- apps/minifront/src/components/footer/rights-message.tsx | 2 +- apps/minifront/src/components/layout.tsx | 2 +- packages/storage/src/indexed-db/updater.ts | 8 +++----- .../components/ui/copy-to-clipboard/copy-to-clipboard.tsx | 3 +-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/apps/minifront/src/components/footer/rights-message.tsx b/apps/minifront/src/components/footer/rights-message.tsx index f3e732b224..59c29a1f0a 100644 --- a/apps/minifront/src/components/footer/rights-message.tsx +++ b/apps/minifront/src/components/footer/rights-message.tsx @@ -5,7 +5,7 @@ export const RightsMessage = () => {
diff --git a/apps/minifront/src/components/layout.tsx b/apps/minifront/src/components/layout.tsx index d126cf8ca9..77a5090c07 100644 --- a/apps/minifront/src/components/layout.tsx +++ b/apps/minifront/src/components/layout.tsx @@ -3,8 +3,8 @@ import { HeadTag } from './metadata/head-tag'; import { Header } from './header/header'; import { Toaster } from '@repo/ui/components/ui/toaster'; import { Footer } from './footer/footer'; -import '@repo/ui/styles/globals.css'; import { MotionConfig } from 'framer-motion'; +import '@repo/ui/styles/globals.css'; export const Layout = () => { return ( diff --git a/packages/storage/src/indexed-db/updater.ts b/packages/storage/src/indexed-db/updater.ts index c9655f3ff7..2294148d80 100644 --- a/packages/storage/src/indexed-db/updater.ts +++ b/packages/storage/src/indexed-db/updater.ts @@ -23,15 +23,13 @@ export class IbdUpdater { subscribe>( table: StoreName, ): AsyncGenerator, void> { - // Need a local binding - // eslint-disable-next-line @typescript-eslint/no-this-alias - const bind = this; + const localSubscribers = this.subscribers; const subscriber = async function* () { while (true) { const update = await new Promise>(resolve => { - const resolversForTable = bind.subscribers.get(table) ?? []; + const resolversForTable = localSubscribers.get(table) ?? []; resolversForTable.push(resolve as Resolver); - bind.subscribers.set(table, resolversForTable); + localSubscribers.set(table, resolversForTable); }); yield update; } diff --git a/packages/ui/components/ui/copy-to-clipboard/copy-to-clipboard.tsx b/packages/ui/components/ui/copy-to-clipboard/copy-to-clipboard.tsx index f46ab50831..a1d231253b 100644 --- a/packages/ui/components/ui/copy-to-clipboard/copy-to-clipboard.tsx +++ b/packages/ui/components/ui/copy-to-clipboard/copy-to-clipboard.tsx @@ -1,7 +1,6 @@ 'use client'; -import type { ReactNode, ButtonHTMLAttributes } from 'react'; -import { useState, forwardRef } from 'react'; +import { ReactNode, ButtonHTMLAttributes, useState, forwardRef } from 'react'; import { CheckCircledIcon } from '@radix-ui/react-icons'; import { Button } from '../button'; import { cn } from '../../../lib/utils';