mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-18 01:50:50 +00:00
docs: minor comments so I won't lose my mind in 3 months
This commit is contained in:
parent
c09074a211
commit
3cfcb326fc
2 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,7 @@ export default function App(): JSX.Element {
|
|||
};
|
||||
}, []);
|
||||
|
||||
// Wait for main process to give us the OK to hit kilovolt
|
||||
useEffect(() => {
|
||||
void IsServerReady().then(setReady);
|
||||
EventsOn('ready', (newValue: boolean) => {
|
||||
|
@ -212,6 +213,7 @@ export default function App(): JSX.Element {
|
|||
};
|
||||
}, []);
|
||||
|
||||
// Connect to kilovolt as soon as it's available
|
||||
useEffect(() => {
|
||||
if (!ready) {
|
||||
return;
|
||||
|
|
|
@ -601,6 +601,7 @@ export default function OnboardingPage() {
|
|||
const currentStep = steps[uiConfig?.onboardingStatus || 0];
|
||||
const landing = currentStep === OnboardingSteps.Landing;
|
||||
|
||||
// Skip onboarding if we've already done it
|
||||
const onboardingDone = uiConfig?.onboardingDone;
|
||||
useEffect(() => {
|
||||
if (onboardingDone) {
|
||||
|
|
Loading…
Reference in a new issue