revert: use stable react (#3228)

This commit is contained in:
Alex Yang
2023-07-14 13:33:43 +08:00
committed by GitHub
parent 9a85a14970
commit 2be0ae8906
19 changed files with 154 additions and 101 deletions

View File

@@ -37,8 +37,8 @@
"@blocksuite/icons": "^2.1.24",
"@blocksuite/lit": "0.0.0-20230713131127-200a0dc1-nightly",
"@blocksuite/store": "0.0.0-20230713131127-200a0dc1-nightly",
"react": "18.3.0-canary-1fdacbefd-20230630",
"react-dom": "18.3.0-canary-1fdacbefd-20230630"
"react": "18.2.0",
"react-dom": "18.2.0"
},
"peerDependencies": {
"@blocksuite/blocks": "*",

View File

@@ -9,7 +9,7 @@ import type { Page } from '@blocksuite/store';
import { createMemoryStorage, Workspace } from '@blocksuite/store';
import { expect } from '@storybook/jest';
import type { Meta, StoryFn } from '@storybook/react';
import { use } from 'react';
import { use } from 'foxact/use';
const blockSuiteWorkspace = new Workspace({
id: 'test',

View File

@@ -13,7 +13,8 @@ import { createEmptyBlockSuiteWorkspace } from '@affine/workspace/utils';
import type { Page } from '@blocksuite/store';
import { expect } from '@storybook/jest';
import type { StoryFn } from '@storybook/react';
import { use, useState } from 'react';
import { use } from 'foxact/use';
import { useState } from 'react';
export default {
title: 'AFFiNE/ShareMenu',

View File

@@ -6,8 +6,7 @@
"baseUrl": "../..",
"composite": true,
"noEmit": false,
"outDir": "lib",
"types": ["react/experimental"]
"outDir": "lib"
},
"references": [
{