refactor: improve VersionUpgradeModal props and extract ReleaseInfo type

Using useVersionCheck hook in 2 places caused github requests to be made twice, which is not ideal.
This commit is contained in:
Haileyesus
2026-02-05 22:19:15 +03:00
parent 7b498085ea
commit e2e77f20ba
4 changed files with 32 additions and 18 deletions

View File

@@ -782,7 +782,13 @@ function AppContent() {
/>
{/* Version Upgrade Modal */}
<VersionUpgradeModal showVersionModal={showVersionModal} setShowVersionModal={setShowVersionModal}/>
<VersionUpgradeModal
isOpen={showVersionModal}
onClose={() => setShowVersionModal(false)}
releaseInfo={releaseInfo}
currentVersion={currentVersion}
latestVersion={latestVersion}
/>
</div>
);
}