fix: merge issue

This commit is contained in:
linonetwo 2023-01-10 18:15:02 +08:00
parent 09e900b1f7
commit abc895c6b2
8 changed files with 8 additions and 9 deletions

@ -1 +1 @@
Subproject commit b941d0a8a9ca2a5a0c14dc6fa86e868be9075700 Subproject commit 456b68ec75cb3ac2cd361b869d9b6c59c3e2714c

View File

@ -5,7 +5,7 @@ import { useState } from 'react';
import Input from '@/ui/input'; import Input from '@/ui/input';
import { useTemporaryHelper } from '@/providers/temporary-helper-provider'; import { useTemporaryHelper } from '@/providers/temporary-helper-provider';
import { KeyboardEvent } from 'react'; import { KeyboardEvent } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from '@affine/i18n';
interface ICloseParams { interface ICloseParams {
workspaceId?: string; workspaceId?: string;
} }

View File

@ -19,7 +19,7 @@ import Slide from '@mui/material/Slide';
import useCurrentPageMeta from '@/hooks/use-current-page-meta'; import useCurrentPageMeta from '@/hooks/use-current-page-meta';
import { useAppState } from '@/providers/app-state-provider'; import { useAppState } from '@/providers/app-state-provider';
import useHistoryUpdated from '@/hooks/use-history-update'; import useHistoryUpdated from '@/hooks/use-history-update';
import { useTranslation } from 'react-i18next'; import { useTranslation } from '@affine/i18n';
const useToolbarList1 = () => { const useToolbarList1 = () => {
const { t } = useTranslation(); const { t } = useTranslation();

View File

@ -1,7 +1,7 @@
import { Button } from '@/ui/button'; import { Button } from '@/ui/button';
import { FC, useRef, ChangeEvent, ReactElement } from 'react'; import { FC, useRef, ChangeEvent, ReactElement } from 'react';
import { styled } from '@/styles'; import { styled } from '@/styles';
import { useTranslation } from 'react-i18next'; import { useTranslation } from '@affine/i18n';
interface Props { interface Props {
uploadType?: string; uploadType?: string;
children?: ReactElement; children?: ReactElement;

View File

@ -4,7 +4,7 @@ import { useAppState } from '@/providers/app-state-provider';
import { useConfirm } from '@/providers/ConfirmProvider'; import { useConfirm } from '@/providers/ConfirmProvider';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import useCurrentPageMeta from '@/hooks/use-current-page-meta'; import useCurrentPageMeta from '@/hooks/use-current-page-meta';
import { useTranslation } from 'react-i18next'; import { useTranslation } from '@affine/i18n';
export const TrashButtonGroup = () => { export const TrashButtonGroup = () => {
const { permanentlyDeletePage } = usePageHelper(); const { permanentlyDeletePage } = usePageHelper();

View File

@ -10,7 +10,7 @@ import {
UsersIcon, UsersIcon,
AddIcon, AddIcon,
} from '@blocksuite/icons'; } from '@blocksuite/icons';
import { useConfirm } from '@/providers/confirm-provider'; import { useConfirm } from '@/providers/ConfirmProvider';
import { toast } from '@/ui/toast'; import { toast } from '@/ui/toast';
import { WorkspaceAvatar } from '@/components/workspace-avatar'; import { WorkspaceAvatar } from '@/components/workspace-avatar';
import { useTemporaryHelper } from '@/providers/temporary-helper-provider'; import { useTemporaryHelper } from '@/providers/temporary-helper-provider';

View File

@ -1,10 +1,9 @@
import { LOCALES } from '@/libs/i18n/resources/index';
import UnfoldMoreIcon from '@mui/icons-material/UnfoldMore'; import UnfoldMoreIcon from '@mui/icons-material/UnfoldMore';
import type { TooltipProps } from '@mui/material'; import type { TooltipProps } from '@mui/material';
import { styled } from '@/styles'; import { styled } from '@/styles';
import { Button, Tooltip } from '@mui/material'; import { Button, Tooltip } from '@mui/material';
import { useState } from 'react'; import { useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation, LOCALES } from '@affine/i18n';
export const LanguageMenu = () => { export const LanguageMenu = () => {
const { i18n } = useTranslation(); const { i18n } = useTranslation();

View File

@ -12,7 +12,7 @@ import {
} from './WorkspaceItem'; } from './WorkspaceItem';
import { WorkspaceSetting } from '@/components/workspace-setting'; import { WorkspaceSetting } from '@/components/workspace-setting';
import { useCallback, useEffect, useState } from 'react'; import { useCallback, useEffect, useState } from 'react';
import { getDataCenter, WorkspaceType } from '@affine/datacenter'; import { WorkspaceType } from '@affine/datacenter';
import { useModal } from '@/providers/GlobalModalProvider'; import { useModal } from '@/providers/GlobalModalProvider';
export type WorkspaceDetails = Record< export type WorkspaceDetails = Record<