Skip to content

Commit

Permalink
feat(app): add new casino app
Browse files Browse the repository at this point in the history
  • Loading branch information
antonstjernquist committed Sep 9, 2024
1 parent de3cc85 commit b413630
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
15 changes: 15 additions & 0 deletions src/ui/src/Apps/Casino/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { useEffect } from 'react';
import { TopNavigation } from '../../components/Navigation/TopNavigation';

export const CasinoApp = () => {
useEffect(() => {
document.title = 'Casino';
}, []);

return (
<div className="flex flex-col gap-2 flex-1 h-full overflow-hidden">
<TopNavigation title="Casino" />
<span>hello I am casino app</span>
</div>
);
};
5 changes: 5 additions & 0 deletions src/ui/src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ContactView } from './Apps/Calls/Contacts/Contact';
import { Call } from './Apps/Calls/Call';
import { KeypadView } from './Apps/Calls/Keypad';
import { LatestView } from './Apps/Calls/Latest';
import { CasinoApp } from './Apps/Casino';

export const router = createHashRouter([
{
Expand Down Expand Up @@ -46,6 +47,10 @@ export const router = createHashRouter([
},
],
},
{
path: 'casino',
element: <CasinoApp />,
},
],
},
],
Expand Down
16 changes: 3 additions & 13 deletions src/ui/src/views/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const apps = [
logo: '📞',
},
{
id: 'contacts',
name: 'Contacts',
logo: '📇',
id: 'casino',
name: 'Casino',
logo: '🎰',
},
{
id: 'messages',
Expand All @@ -32,16 +32,6 @@ const apps = [
name: 'Camera',
logo: '📸',
},
{
id: 'weather',
name: 'Weather',
logo: '🌤️',
},
{
id: 'maps',
name: 'Maps',
logo: '🗺️',
},
{
id: 'clock',
name: 'Clock',
Expand Down

0 comments on commit b413630

Please sign in to comment.