0.70 CHANGELOG (#4165)

This commit is contained in:
Jaco Greeff 2020-12-07 12:17:15 +01:00 committed by GitHub
parent 34c2e8c00c
commit c72a86f349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 18 deletions

View File

@ -1,5 +1,30 @@
# CHANGELOG
## 0.70.1 Dec 7, 2020
Contributed:
- Add Polkadot/Kusama endpoints via PatractLabs (Thanks to https://github.com/toxotguo)
- Add types for Bitfrost testnet (Thaks to https://github.com/janpo)
- Adjust Crust network types & logo (Thanks to https://github.com/zikunfan)
- Adjust types for Phala poc-3 (Thanks to https://github.com/LusWar)
- Move to typesBundle for Moonbeam (Thanks to https://github.com/joelamouche)
- Adjust import ordering with plugin (Thanks to https://github.com/ekowalsk)
Changes:
- Bump to latest Ledger libraries for Windows USB fixes
- Store network endpoint affinity (last-used per network)
- Only show links in sidebar for verified-good identities
- Adjust staking pages to show loading indicators, optimize number of queries
- Adjust staking target filters, including explicit identity grouping
- Rework target/waiting loading with shared nominator loading
- Cleanup calendar interface (ease of maintaining)
- Remove sparsely-used classes utility (inconsistent use)
- Swap to using TypeScript 4.1.2
- Adjust dark theme to work with help overlays
## 0.69.1 Nov 30, 2020
Contributed:

View File

@ -64,20 +64,24 @@ function Slashes ({ buttons, councilId, councilThreshold, slash }: Props): React
<Summary slash={slash} />
<Button.Group>
{buttons}
<TxButton
accountId={councilId}
extrinsic={txSome}
isDisabled={!txSome}
isToplevel
label={t('Cancel selected')}
/>
<TxButton
accountId={councilId}
extrinsic={txAll}
isDisabled={!txAll}
isToplevel
label={t('Cancel all')}
/>
{api.tx.council?.propose && (
<>
<TxButton
accountId={councilId}
extrinsic={txSome}
isDisabled={!txSome}
isToplevel
label={t('Cancel selected')}
/>
<TxButton
accountId={councilId}
extrinsic={txAll}
isDisabled={!txAll}
isToplevel
label={t('Cancel all')}
/>
</>
)}
</Button.Group>
<Table header={headerRef.current}>
{slash.slashes.map((slash, index): React.ReactNode => (

View File

@ -10,7 +10,7 @@ import type { DefaultProps } from './types';
import { ApiConsumer } from '../ApiContext';
export default function withApi <P extends ApiProps> (Inner: React.ComponentType<P>, defaultProps: DefaultProps = {}): React.ComponentType<any> {
return class WithApi extends React.PureComponent<SubtractProps<P, ApiProps>> {
class WithApi extends React.PureComponent<SubtractProps<P, ApiProps>> {
private component: any = React.createRef();
public render (): React.ReactNode {
@ -32,5 +32,7 @@ export default function withApi <P extends ApiProps> (Inner: React.ComponentType
</ApiConsumer>
);
}
};
}
return WithApi;
}

View File

@ -18,7 +18,7 @@ interface State extends CallState {
export default function withObservable<T, P> (observable: Observable<P>, { callOnResult, propName = 'value', transform = echoTransform }: Options = {}): HOC {
return (Inner: React.ComponentType<any>, defaultProps: DefaultProps = {}, render?: RenderFn): React.ComponentType<any> => {
return class WithObservable extends React.Component<any, State> {
class WithObservable extends React.Component<any, State> {
private isActive = true;
public state: State = {
@ -85,6 +85,8 @@ export default function withObservable<T, P> (observable: Observable<P>, { callO
</Inner>
);
}
};
}
return WithObservable;
};
}