mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
fix(lint): corrigir schema biome.json e formatação de imports
- biome.json: bump schema 2.4.10 → 2.4.11 - establishment-logo-picker.tsx, establishment-logo.tsx, navigation-menu.tsx, logo/index.ts: organizar imports e ajustar formatação conforme Biome 2.4.11 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,11 +9,7 @@ import {
|
||||
PopoverTrigger,
|
||||
} from "@/shared/components/ui/popover";
|
||||
import { Spinner } from "@/shared/components/ui/spinner";
|
||||
import {
|
||||
buildLogoDevUrl,
|
||||
logoQueryKeys,
|
||||
toNameKey,
|
||||
} from "@/shared/lib/logo";
|
||||
import { buildLogoDevUrl, logoQueryKeys, toNameKey } from "@/shared/lib/logo";
|
||||
import {
|
||||
removeEstablishmentLogoAction,
|
||||
saveEstablishmentLogoAction,
|
||||
@@ -84,7 +80,9 @@ export function EstablishmentLogoPicker({
|
||||
function handleSelect(domain: string) {
|
||||
startTransition(async () => {
|
||||
await saveEstablishmentLogoAction(name, domain);
|
||||
queryClient.setQueryData(logoQueryKeys.mapping(toNameKey(name)), { domain });
|
||||
queryClient.setQueryData(logoQueryKeys.mapping(toNameKey(name)), {
|
||||
domain,
|
||||
});
|
||||
onSelect(domain);
|
||||
});
|
||||
}
|
||||
@@ -128,7 +126,8 @@ export function EstablishmentLogoPicker({
|
||||
onClick={handleReset}
|
||||
className={cn(
|
||||
"flex flex-col items-center gap-1 rounded-md p-1.5 text-center transition-colors hover:bg-accent disabled:opacity-50",
|
||||
resolvedDomain === null && "ring-2 ring-primary ring-offset-1",
|
||||
resolvedDomain === null &&
|
||||
"ring-2 ring-primary ring-offset-1",
|
||||
)}
|
||||
title="Usar iniciais coloridas"
|
||||
>
|
||||
@@ -157,7 +156,8 @@ export function EstablishmentLogoPicker({
|
||||
onClick={() => handleSelect(r.domain)}
|
||||
className={cn(
|
||||
"flex flex-col items-center gap-1 rounded-md p-1.5 text-center transition-colors hover:bg-accent disabled:opacity-50",
|
||||
resolvedDomain === r.domain && "ring-2 ring-primary ring-offset-1",
|
||||
resolvedDomain === r.domain &&
|
||||
"ring-2 ring-primary ring-offset-1",
|
||||
)}
|
||||
title={r.name}
|
||||
>
|
||||
|
||||
@@ -4,8 +4,8 @@ import { RiPencilLine } from "@remixicon/react";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { useEffect, useState } from "react";
|
||||
import {
|
||||
LOGO_DEV_TOKEN,
|
||||
buildLogoDevUrl,
|
||||
LOGO_DEV_TOKEN,
|
||||
logoQueryKeys,
|
||||
toNameKey,
|
||||
} from "@/shared/lib/logo";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
||||
import { RiArrowDropDownLine } from "@remixicon/react";
|
||||
import { cva } from "class-variance-authority";
|
||||
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
||||
import type * as React from "react";
|
||||
import { cn } from "@/shared/utils";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user