mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
rename function
This commit is contained in:
parent
a817a26be1
commit
9c28a6e9d0
@ -47,7 +47,7 @@ export default function Splash() {
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const renderSwitch = () => {
|
const renderUpdateInfo = () => {
|
||||||
switch (status?.type) {
|
switch (status?.type) {
|
||||||
case "download-progress":
|
case "download-progress":
|
||||||
return (
|
return (
|
||||||
@ -78,7 +78,9 @@ export default function Splash() {
|
|||||||
return (
|
return (
|
||||||
<main className={styles.main}>
|
<main className={styles.main}>
|
||||||
<img src={icon} className={styles.splashIcon} alt="Hydra Logo" />
|
<img src={icon} className={styles.splashIcon} alt="Hydra Logo" />
|
||||||
<section className={styles.updateInfoSection}>{renderSwitch()}</section>
|
<section className={styles.updateInfoSection}>
|
||||||
|
{renderUpdateInfo()}
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user