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

6
src/types/sharedTypes.ts Normal file
View File

@@ -0,0 +1,6 @@
export type ReleaseInfo = {
title: string;
body: string;
htmlUrl: string;
publishedAt: string;
};