Remove prop-types overrides (#382)
This commit is contained in:
parent
46ce36cf08
commit
cb8dd7d42d
@ -32,7 +32,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.10.4",
|
||||
"@polkadot/dev": "^0.55.18",
|
||||
"@polkadot/dev": "^0.55.19",
|
||||
"@polkadot/typegen": "^1.23.0-beta.3",
|
||||
"@types/jest": "^26.0.3",
|
||||
"copy-webpack-plugin": "^6.0.3",
|
||||
|
||||
@ -22,8 +22,6 @@ interface EditState {
|
||||
toggleActions: number;
|
||||
}
|
||||
|
||||
// Prop types is severely broken
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function Account ({ address, className, genesisHash, isExternal, isHidden, parentName, suri }: Props): React.ReactElement<Props> {
|
||||
const onAction = useContext(ActionContext);
|
||||
const [{ isEditing, toggleActions }, setEditing] = useState<EditState>({ isEditing: false, toggleActions: 0 });
|
||||
|
||||
@ -10,8 +10,6 @@ interface Props extends AccountWithChildren {
|
||||
parentName?: string;
|
||||
}
|
||||
|
||||
// Prop types is severely broken
|
||||
// eslint-disable-next-line react/prop-types
|
||||
export default function AccountsTree ({ parentName, suri, ...account }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<>
|
||||
|
||||
@ -38,9 +38,6 @@ function isRawPayload (payload: SignerPayloadJSON | SignerPayloadRaw): payload i
|
||||
return !!(payload as SignerPayloadRaw).data;
|
||||
}
|
||||
|
||||
// broken, broken, broken
|
||||
/* eslint-disable react/prop-types */
|
||||
|
||||
export default function Request ({ account: { isExternal }, buttonText, isFirst, request, signId, url }: Props): React.ReactElement<Props> | null {
|
||||
const onAction = useContext(ActionContext);
|
||||
const [{ hexBytes, payload }, setData] = useState<Data>({ hexBytes: null, payload: null });
|
||||
|
||||
@ -58,7 +58,6 @@ function convertResult (result: ArrayBuffer, convertHex?: boolean): Uint8Array {
|
||||
return data;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function InputFile ({ accept, className = '', clearContent, convertHex, isDisabled, isError = false, label, onChange, placeholder }: InputFileProps): React.ReactElement<InputFileProps> {
|
||||
const dropRef = createRef<DropzoneRef>();
|
||||
const [file, setFile] = useState<FileState | undefined>();
|
||||
|
||||
@ -17,7 +17,6 @@ interface Props {
|
||||
to?: string;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function Link ({ children, className = '', isDisabled, onClick, to }: Props): React.ReactElement<Props> {
|
||||
if (isDisabled) {
|
||||
return (
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
"@polkadot/extension-ui": "0.32.0-beta.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.55.18",
|
||||
"@polkadot/dev": "^0.55.19",
|
||||
"babel-loader": "^8.1.0",
|
||||
"extract-loader": "^5.1.0",
|
||||
"file-loader": "^6.0.0",
|
||||
|
||||
12
yarn.lock
12
yarn.lock
@ -2836,9 +2836,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev@npm:^0.55.18":
|
||||
version: 0.55.18
|
||||
resolution: "@polkadot/dev@npm:0.55.18"
|
||||
"@polkadot/dev@npm:^0.55.19":
|
||||
version: 0.55.19
|
||||
resolution: "@polkadot/dev@npm:0.55.19"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.10.4
|
||||
"@babel/core": ^7.10.4
|
||||
@ -2921,7 +2921,7 @@ __metadata:
|
||||
polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js
|
||||
polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.js
|
||||
checksum: 3/96b25c14c9bd66d670ad49d63f37edb2226444530464a10899c0b9121448f246f0b7df28c92393e317ffe86be7f34e30f4bbad0bc48fa4151b07f31fd766001d
|
||||
checksum: 3/5f690f0995be5cbbf0b3522f7e494c3a23c1e35632918af0c34842363b5c93431192b058878c9cc91a1110a84c5aef1fd3100ed84ea2371d2c5af5322f877d31
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -3011,7 +3011,7 @@ __metadata:
|
||||
resolution: "@polkadot/extension@workspace:packages/extension"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.4
|
||||
"@polkadot/dev": ^0.55.18
|
||||
"@polkadot/dev": ^0.55.19
|
||||
"@polkadot/extension-base": 0.32.0-beta.2
|
||||
"@polkadot/extension-inject": 0.32.0-beta.2
|
||||
"@polkadot/extension-ui": 0.32.0-beta.2
|
||||
@ -18677,7 +18677,7 @@ __metadata:
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@babel/core": ^7.10.4
|
||||
"@polkadot/dev": ^0.55.18
|
||||
"@polkadot/dev": ^0.55.19
|
||||
"@polkadot/typegen": ^1.23.0-beta.3
|
||||
"@types/jest": ^26.0.3
|
||||
copy-webpack-plugin: ^6.0.3
|
||||
|
||||
Loading…
Reference in New Issue
Block a user