Skip to content

Commit

Permalink
Merge pull request #310 from terra-money/sync-8.0.7.1
Browse files Browse the repository at this point in the history
Sync 8.0.7.1
  • Loading branch information
mwmerz authored Mar 6, 2024
2 parents 91dc3c8 + 27f58b2 commit 6c75cbe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "Station Wallet",
"version": "8.0.7",
"version_name": "8.0.7",
"version": "8.0.7.1",
"version_name": "8.0.7.1",
"background": {
"service_worker": "background.js"
},
Expand Down
21 changes: 20 additions & 1 deletion src/extension/update/ChangeLogModal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { useQuery } from "react-query"
import styles from "./ChangeLogModal.module.scss"
import { LoadingCircular, Modal } from "@terra-money/station-ui"
import { LoadingCircular, Modal, Button } from "@terra-money/station-ui"
import axios from "axios"
import { RefetchOptions } from "data/query"
import { useTranslation } from "react-i18next"
import browser from "webextension-polyfill"
import { markdownTextParser } from "utils/markdown"
import { useState } from "react"
Expand All @@ -29,6 +30,7 @@ const useChangeLogInfo = (version?: string) => {
}

export default function ChangeLogModal() {
const { t } = useTranslation()
const currentVersion = browser.runtime?.getManifest?.()?.version
const lastVersionShown = localStorage.getItem(LOCALSTORAGE_CHANGELOG_KEY)
const [showChangelog, setShowChangelog] = useState<boolean>(
Expand Down Expand Up @@ -70,6 +72,23 @@ export default function ChangeLogModal() {
<LoadingCircular />
</div>
)}
<div
style={{
marginTop: "24px",
display: "flex",
justifyContent: "center",
}}
>
<Button
variant="primary"
onClick={() => {
setShowChangelog(false)
localStorage.setItem(LOCALSTORAGE_CHANGELOG_KEY, currentVersion)
}}
>
{t("Close")}
</Button>
</div>
</article>
</Modal>
)
Expand Down

0 comments on commit 6c75cbe

Please sign in to comment.