Merge branch 'main' of github.com:standardnotes/app
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [3.127.1](https://github.com/standardnotes/app/compare/@standardnotes/web@3.127.0...@standardnotes/web@3.127.1) (2022-12-19)
|
||||
|
||||
**Note:** Version bump only for package @standardnotes/web
|
||||
|
||||
# [3.127.0](https://github.com/standardnotes/app/compare/@standardnotes/web@3.126.4...@standardnotes/web@3.127.0) (2022-12-16)
|
||||
|
||||
### Features
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"version": "3.127.1",
|
||||
"title": "[3.127.1](https://github.com/standardnotes/app/compare/@standardnotes/web@3.127.0...@standardnotes/web@3.127.1) (2022-12-19)",
|
||||
"date": null,
|
||||
"body": "**Note:** Version bump only for package @standardnotes/web",
|
||||
"parsed": {
|
||||
"_": [
|
||||
"Note: Version bump only for package @standardnotes/web"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "3.127.0",
|
||||
"title": "[3.127.0](https://github.com/standardnotes/app/compare/@standardnotes/web@3.126.4...@standardnotes/web@3.127.0) (2022-12-16)",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@standardnotes/web",
|
||||
"version": "3.127.0",
|
||||
"version": "3.127.1",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"main": "dist/app.js",
|
||||
"author": "Standard Notes",
|
||||
|
||||
@@ -22,10 +22,11 @@ const PreferencesButton = ({ openPreferences }: Props) => {
|
||||
const [changelogLastReadVersion, setChangelogLastReadVersion] = useState(() =>
|
||||
application.changelogService.getLastReadVersion(),
|
||||
)
|
||||
const isChangelogUnread = useMemo(
|
||||
() => (changelogLastReadVersion ? compareSemVersions(application.version, changelogLastReadVersion) > 0 : false),
|
||||
[application.version, changelogLastReadVersion],
|
||||
)
|
||||
const isChangelogUnread = useMemo(() => {
|
||||
return changelogLastReadVersion && !application.isNativeMobileWeb()
|
||||
? compareSemVersions(application.version, changelogLastReadVersion) > 0
|
||||
: false
|
||||
}, [application, changelogLastReadVersion])
|
||||
useEffect(
|
||||
() => application.changelogService.addLastReadChangeListener(setChangelogLastReadVersion),
|
||||
[application.changelogService],
|
||||
|
||||
Reference in New Issue
Block a user