mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 11:05:47 +00:00
5542791af8
* Adjust update flow to not auto update, not publish in CI * Revert "Adjust update flow to not auto update, not publish in CI" This reverts commit 74fb382ce8d8cd9e227703ccfa8d6310bffd9dda. * First pass at new app version modal * Added app alpha notice that either warns you about alpha, or blocks the whole app. * Improve newer version detection, add unit tests * Remove native auto update behavior * Notice once per session * copy changes per PR review
15 lines
349 B
TypeScript
15 lines
349 B
TypeScript
import React from 'react';
|
|
import { APP_ALPHA_EXPIRATION } from 'config';
|
|
import AlphaNotice from './AlphaNotice';
|
|
import AppExpired from './AppExpired';
|
|
|
|
const AppAlphaNotice: React.SFC<{}> = () => {
|
|
if (APP_ALPHA_EXPIRATION < Date.now()) {
|
|
return <AppExpired />;
|
|
} else {
|
|
return <AlphaNotice />;
|
|
}
|
|
};
|
|
|
|
export default AppAlphaNotice;
|