This commit is contained in:
Jaco Greeff
2020-04-01 22:57:30 +02:00
committed by GitHub
parent d29edf679e
commit 7428ef8eb7
8 changed files with 317 additions and 778 deletions
+7 -3
View File
@@ -34,9 +34,13 @@ function App ({ className }: Props): React.ReactElement<Props> | null {
},
[ss58Format]
);
const _onChangeSS58Format = ({ currentTarget: { value } }: React.SyntheticEvent<HTMLSelectElement>): void => {
setSS58Format(parseInt(value, 10));
};
const _onChangeSS58Format = useCallback(
({ currentTarget: { value } }: React.SyntheticEvent<HTMLSelectElement>): void => {
setSS58Format(parseInt(value, 10));
},
[]
);
useEffect((): void => {
_onClickNew();