Skip to content

Commit

Permalink
Actualize the template
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqbnk committed May 18, 2024
1 parent 255af53 commit 8012916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ export function App() {
});
createEffect(() => {
const vp = viewport();
if (vp) {
onCleanup(bindViewportCSSVars(vp));
}
vp && onCleanup(bindViewportCSSVars(vp));
});

// Create new application navigator and attach it to the browser history, so it could modify
// it and listen to its changes.
const navigator = initNavigator('app-navigator-state', { hashMode: 'default' });
const navigator = initNavigator('app-navigator-state');
void navigator.attach();

onCleanup(() => {
Expand All @@ -47,7 +45,7 @@ export function App() {
<For each={routes}>
{(route) => <Route path={route.path} component={route.Component}/>}
</For>
<Route path='*' component={() => <Navigate href='/'/>}/>
<Route path="*" component={() => <Navigate href="/"/>}/>
</Router>
);
}
3 changes: 1 addition & 2 deletions src/pages/InitDataPage/InitDataPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { retrieveLaunchParams, useInitData, type User } from '@tma.js/sdk-solid';
import { createMemo, Show } from 'solid-js';
import type { Component } from 'solid-js';
import { createMemo, Show, type Component } from 'solid-js';

import { DisplayData, type DisplayDataRow } from '@/components/DisplayData/DisplayData.js';
import { Link } from '@/components/Link/Link.js';
Expand Down

0 comments on commit 8012916

Please sign in to comment.