Skip to content

Commit

Permalink
build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Sep 4, 2024
1 parent f20811b commit c630ef1
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 43 deletions.
6 changes: 0 additions & 6 deletions clients/react-vite/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { LandingPage } from "./components/pages/LandingPage";
import { Button } from "./components/ui/button";

import { useSurvivorState } from "./hooks/useSurvivorState";
import { useConnect } from "@starknet-react/core";

function App() {
const { survivor } = useSurvivorState();

return (
<>
<LandingPage />
Expand Down
2 changes: 1 addition & 1 deletion clients/react-vite/src/components/game/ItemBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ItemBar = ({ item }: ItemBarProps) => {
/>
<div className="relative z-10 flex justify-between">
<div className="flex gap-4">
<Ring className="w-4" />
<Ring />
<div>{item.name}</div>
</div>

Expand Down
6 changes: 3 additions & 3 deletions clients/react-vite/src/components/game/PlayerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ export const PlayerPage = () => {
{
label: "Profile",
value: "profile",
icon: <Ring className="w-4" />,
icon: <Ring />,
},
{
label: "Inventory",
value: "inventory",
icon: <Ring className="w-4" />,
icon: <Ring />,
},
{
label: "Settings",
value: "settings",
icon: <Ring className="w-4" />,
icon: <Ring />,
},
];
return (
Expand Down
3 changes: 0 additions & 3 deletions clients/react-vite/src/components/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ import {
PaginationPrevious,
} from "@/components/ui/pagination";

import { useConnect } from "@starknet-react/core";
import { useState } from "react";
import { AnimatedNumber } from "../ui/animatedNumber";
import { Button } from "../ui/button";

export const LandingPage = () => {
const { connect, connectors } = useConnect();

const [page, setPage] = useState(1);

const handlePreviousPage = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import React from "react";
import {
useQuery,
useMutation,
useQueryClient,
QueryClient,
QueryClientProvider,
} from "@tanstack/react-query";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

const queryClient = new QueryClient();

Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ interface AdventurerWithScore extends AdventurerComplete {
totalPayout?: number;
}

const endpoint = "https://ls-indexer-sepolia.provable.games/graphql";

export const useAdventurersByXPWithScores = ({ page }: { page: number }) => {
const adventurersQuery = useDeadAdventurersByXPPaginated({
skip: (page - 1) * 10,
Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/BeastCard.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { BeastCard } from "@/components/game/BeastCard";

const meta = {
Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

import "./header.css";
import { Button } from "@/components/ui/button";

Expand Down
1 change: 0 additions & 1 deletion clients/react-vite/src/stories/ItemBar.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";

Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/ItemBarList.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { ItemBarList } from "@/components/game/ItemBarList";

const meta = {
Expand Down
3 changes: 0 additions & 3 deletions clients/react-vite/src/stories/LevelUp.stories.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { LootMarket } from "@/components/game/LootMarket";
import { LevelUp } from "@/components/game/LevelUp";

const meta = {
Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/LootMarket.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { LootMarket } from "@/components/game/LootMarket";

const meta = {
Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/PlayerCard.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { PlayerCard } from "@/components/game/PlayerCard";

const meta = {
Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/PlayerPage.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { PlayerPage } from "@/components/game/PlayerPage";

const meta = {
Expand Down
3 changes: 0 additions & 3 deletions clients/react-vite/src/stories/PlayerProfile.stories.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { PlayerTabs } from "@/components/game/PlayerTabs";
import { PlayerProfile } from "@/components/game/PlayerProfile";

const meta = {
Expand Down
2 changes: 0 additions & 2 deletions clients/react-vite/src/stories/PlayerTabs.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";
import "../index.css";
import ItemBar from "@/components/game/ItemBar";
import { PlayerTabs } from "@/components/game/PlayerTabs";

const meta = {
Expand Down

0 comments on commit c630ef1

Please sign in to comment.