v1.3.2-beta/URGENT PATCH FIX, clean up fix
This commit is contained in:
+8
-2
@@ -8,6 +8,8 @@ import 'firebase/firestore';
|
||||
import Inactive from './Inactive';
|
||||
import { getUserUid } from './Api';
|
||||
|
||||
const APP_VERSION = '1.3.2';
|
||||
|
||||
const darkTheme = createMuiTheme({
|
||||
palette: {
|
||||
type: 'dark',
|
||||
@@ -26,6 +28,10 @@ const Routes = (props) => (
|
||||
</Router>
|
||||
);
|
||||
|
||||
const wrongVersionStatus = {
|
||||
message: `Looks like Watch Party needs to update.\nGo to chrome://extensions to manually update.`,
|
||||
};
|
||||
|
||||
const App = () => {
|
||||
const closedNotification = { open: false, message: '' };
|
||||
|
||||
@@ -76,13 +82,13 @@ const App = () => {
|
||||
<div className="party-content-wrapper">
|
||||
<div id="party-routes-wrapper">
|
||||
{loading && <Loading />}
|
||||
{status.active ? (
|
||||
{status.active2 && status.version === APP_VERSION ? (
|
||||
<Routes
|
||||
updateLoading={setLoading}
|
||||
notify={(message) => setNotification({ open: true, message })}
|
||||
/>
|
||||
) : (
|
||||
<Inactive status={status} />
|
||||
<Inactive status={status.version !== APP_VERSION ? wrongVersionStatus : status} />
|
||||
)}
|
||||
</div>
|
||||
<Fab onClick={() => setVisible(!visible)} className="watch-party-fab">
|
||||
|
||||
Reference in New Issue
Block a user