Fix frontend errors: downgrade to React 17.
This commit is contained in:
parent
b4c676a21c
commit
81d586e520
1178
frontend/package-lock.json
generated
1178
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
||||
"@testing-library/react": "^11.2.7",
|
||||
"@testing-library/user-event": "^12.8.3",
|
||||
"@types/node": "^16.18.9",
|
||||
"@types/react": "^18.0.26",
|
||||
"@types/react": "^17.0.52",
|
||||
"@types/react-dom": "^18.0.9",
|
||||
"axios": "^0.21.1",
|
||||
"babel-plugin-react-scoped-css": "^1.1.1",
|
||||
@ -29,9 +29,9 @@
|
||||
"postcss-cli": "^9.1.0",
|
||||
"raw-loader": "^4.0.2",
|
||||
"rc-tooltip": "^5.1.1",
|
||||
"react": "^18.2.0",
|
||||
"react": "^17.0.2",
|
||||
"react-contextmenu": "^2.14.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-draggable": "^4.4.4",
|
||||
"react-hook-form": "^7.12.1",
|
||||
"react-modal": "^3.14.3",
|
||||
@ -80,6 +80,7 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@acrd/ion": "github:acrdapp/ion",
|
||||
"@tailwindcss/jit": "^0.1.10",
|
||||
"@testing-library/jest-dom": "^5.15.0",
|
||||
"@types/chance": "^1.1.3",
|
||||
@ -106,4 +107,4 @@
|
||||
"@material-ui/core": "^4.12.3",
|
||||
"fsevents": "^2.3.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import { useSelector } from 'react-redux';
|
||||
export interface DropdownProps {
|
||||
title: string;
|
||||
type: React.FunctionComponent;
|
||||
children: any;
|
||||
}
|
||||
|
||||
const Dropdown: React.FunctionComponent<DropdownProps> = (props) => {
|
||||
@ -17,7 +18,7 @@ const Dropdown: React.FunctionComponent<DropdownProps> = (props) => {
|
||||
<FontAwesomeIcon icon={faChevronDown} />
|
||||
</div>
|
||||
{
|
||||
(dropdown === props.type.name) &&
|
||||
(dropdown === props.type.name) &&
|
||||
<div className="absolute bg-bg-floating rounded w-56 p-2 mt-5 z-10">
|
||||
{props.children}
|
||||
</div>
|
||||
@ -25,5 +26,5 @@ const Dropdown: React.FunctionComponent<DropdownProps> = (props) => {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export default Dropdown;
|
@ -1,6 +1,6 @@
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
const events = new EventEmitter();
|
||||
global['events'] = events;
|
||||
(global as any)['events'] = events;
|
||||
|
||||
export default events;
|
@ -40,8 +40,8 @@ describe.skip('mention-service', () => {
|
||||
});
|
||||
|
||||
test(fn('toHTML'), () => {
|
||||
given('<@246688207138279428>').assert('', (val) => expect(val).toContainHTML('data-id="246688207138279428"'));
|
||||
given('<#246688207138279430>').assert('', (val) => expect(val).toContain('data-id="246688207138279430"'));
|
||||
given('<@246688207138279428>').assert(async (val) => expect(val).toContainHTML('data-id="246688207138279428"'));
|
||||
given('<#246688207138279430>').assert(async (val) => expect(val).toContain('data-id="246688207138279430"'));
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { Entity } from '@acrd/types';
|
||||
import { getChannel, getChannelByName } from '../store/channels';
|
||||
import { getTag, getUser, getUserByTag } from '../store/users';
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
"esModuleInterop": true,
|
||||
"noImplicitAny": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"strict": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"module": "esnext",
|
||||
|
Loading…
x
Reference in New Issue
Block a user