Skip to content

Commit

Permalink
Opti fees
Browse files Browse the repository at this point in the history
  • Loading branch information
Matth26 committed Dec 20, 2024
1 parent ff4c96a commit 8140f81
Show file tree
Hide file tree
Showing 91 changed files with 3,571 additions and 1,028 deletions.
2 changes: 2 additions & 0 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import { Toaster } from "./ui/elements/sonner";
import { Home } from "./ui/screens/Home";
import { TooltipProvider } from "@/ui/elements/tooltip";
import { Test } from "./ui/screens/Test";

export default function App() {
return (
<TooltipProvider>
<Router>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/test" element={<Test />} />
</Routes>
<Toaster position="bottom-right" />
</Router>
Expand Down
4 changes: 3 additions & 1 deletion client/src/cartridgeConnector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ const {

export type Manifest = typeof manifest;

const { VITE_PUBLIC_NAMESPACE } = import.meta.env;

const colorMode: ColorMode = "dark";
const theme = "zkube";
const namespace = "zkube";
const namespace = VITE_PUBLIC_NAMESPACE;
const slot = `zkube-${VITE_PUBLIC_DEPLOY_TYPE}`;

const account_contract_address = getContractByName(
Expand Down
5 changes: 2 additions & 3 deletions client/src/contexts/sound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useGame } from "@/hooks/useGame";
import { usePlayer } from "@/hooks/usePlayer";
import React, { createContext, useState, useEffect } from "react";
import useAccountCustom from "@/hooks/useAccountCustom";
import { useMusicPlayer } from './hooks';
import { useMusicPlayer } from "./hooks";

const SoundPlayerContext = createContext({});

Expand All @@ -15,8 +15,7 @@ export function SoundPlayerProvider({
const [over, setOver] = useState(false);
const [start, setStart] = useState(false);

const { account } = useAccountCustom();
const { player } = usePlayer({ playerId: account?.address });
const { player } = usePlayer();
const { game } = useGame({ gameId: player?.game_id, shouldLog: false });

useEffect(() => {
Expand Down
Loading

0 comments on commit 8140f81

Please sign in to comment.