-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update version detection * better version detection * fmt
- Loading branch information
1 parent
87eb7cd
commit 487654d
Showing
7 changed files
with
82 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.root { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
height: 100vh; | ||
width: 100vw; | ||
padding: 16px; | ||
} | ||
|
||
.root h1 { | ||
margin: 0; | ||
margin-bottom: 16px; | ||
text-align: center; | ||
} | ||
|
||
.root p { | ||
margin: 0; | ||
text-align: center; | ||
} | ||
|
||
.splitter { | ||
height: 16px; | ||
} | ||
|
||
.root a { | ||
color: var(--color-text); | ||
text-decoration: underline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
|
||
import styles from "./ShouldUpdate.module.css"; | ||
|
||
function ShouldUpdate() { | ||
return ( | ||
<div className={styles.root}> | ||
<h1>New version is available</h1> | ||
<p>Refresh page to access the new version</p> | ||
<div className={styles.splitter} /> | ||
<p> | ||
<a onClick={() => window.location.reload()}>Refresh</a> | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default React.memo(ShouldUpdate); |