chore: update and fix dependencies

This commit is contained in:
2024-01-17 12:39:04 +07:00
parent 0b745cb40e
commit c0305db5fc
24 changed files with 149 additions and 152 deletions

View File

@@ -1,6 +1,6 @@
import { cn } from "@lume/utils";
import { type Platform } from "@tauri-apps/plugin-os";
import { Outlet } from "react-router-dom";
import { twMerge } from "tailwind-merge";
import { Editor } from "../editor/column";
import { Navigation } from "../navigation";
import { WindowTitleBar } from "../titlebar";
@@ -8,7 +8,7 @@ import { WindowTitleBar } from "../titlebar";
export function AppLayout({ platform }: { platform: Platform }) {
return (
<div
className={twMerge(
className={cn(
"flex h-screen w-screen flex-col",
platform !== "macos" ? "bg-blue-50 dark:bg-blue-950" : "",
)}

View File

@@ -7,9 +7,9 @@ import {
useImperativeHandle,
useState,
} from "react";
import { twMerge } from "tailwind-merge";
import { NDKCacheUserProfile } from "@lume/types";
import { cn } from "@lume/utils";
type MentionListRef = {
onKeyDown: (props: { event: Event }) => boolean;
@@ -76,7 +76,7 @@ const List = (
type="button"
key={item.pubkey}
onClick={() => selectItem(index)}
className={twMerge(
className={cn(
"inline-flex h-11 items-center gap-2 rounded-md px-2",
index === selectedIndex
? "bg-neutral-100 dark:bg-neutral-900"

View File

@@ -1,8 +1,8 @@
import { UnverifiedIcon, VerifiedIcon } from "@lume/icons";
import { cn } from "@lume/utils";
import { useQuery } from "@tanstack/react-query";
import { fetch } from "@tauri-apps/plugin-http";
import { memo } from "react";
import { twMerge } from "tailwind-merge";
interface NIP05 {
names: {
@@ -61,7 +61,7 @@ export const NIP05 = memo(function NIP05({
return (
<div className="inline-flex items-center gap-1">
<p className={twMerge("text-sm font-medium", className)}>
<p className={cn("text-sm font-medium", className)}>
{nip05.startsWith("_@") ? nip05.replace("_@", "") : nip05}
</p>
{data === true ? (

View File

@@ -4,7 +4,6 @@ import { NDKEventWithReplies } from "@lume/types";
import { cn } from "@lume/utils";
import { NDKKind, type NDKSubscription } from "@nostr-dev-kit/ndk";
import { useEffect, useState } from "react";
import { twMerge } from "tailwind-merge";
import { ReplyForm } from "./editor/replyForm";
export function ReplyList({