feat: replace button from @toeverything/components (#3608)

This commit is contained in:
Qi
2023-08-08 12:38:02 +08:00
committed by GitHub
parent 7826ecfa58
commit 6efe29f7ef
60 changed files with 112 additions and 500 deletions

View File

@@ -1,4 +1,5 @@
import { Button, FlexWrapper, Input } from '@affine/component';
import { FlexWrapper, Input } from '@affine/component';
import { Button } from '@toeverything/components/button';
import { useAtom } from 'jotai';
import { type ReactElement, useCallback } from 'react';

View File

@@ -1,5 +1,5 @@
import { IconButton } from '@affine/component';
import { SendIcon } from '@blocksuite/icons';
import { IconButton } from '@toeverything/components/button';
import { useAtomValue, useSetAtom } from 'jotai';
import type { ReactElement } from 'react';
import { Suspense, useCallback, useState } from 'react';

View File

@@ -1,6 +1,7 @@
import { IconButton, Tooltip } from '@affine/component';
import { Tooltip } from '@affine/component';
import { deleteLayoutAtom, pushLayoutAtom } from '@affine/sdk/entry';
import { AiIcon } from '@blocksuite/icons';
import { IconButton } from '@toeverything/components/button';
import { useSetAtom } from 'jotai';
import type { ComponentType, PropsWithChildren, ReactElement } from 'react';
import { useCallback, useState } from 'react';

View File

@@ -1,5 +1,5 @@
import { Button } from '@affine/component';
import { PlusIcon, ResetIcon } from '@blocksuite/icons';
import { Button } from '@toeverything/components/button';
import { clsx } from 'clsx';
import type { MessageType } from 'langchain/schema';
import { marked } from 'marked';