Skip to content

Commit

Permalink
Cleanup (2/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Sep 9, 2024
1 parent dd666b0 commit 4ad6ba1
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
.DS_Store
wasm
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"kasplexbuilder": "github:KaffinPX/KasplexBuilder",
"kprovider": "github:KaffinPX/KProvider",
"kaspianprovider": "github:KaffinPX/KaspianProvider",
"lucide-react": "^0.436.0",
"next-themes": "^0.3.0",
"react": "^18.3.1",
Expand Down
10 changes: 5 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { useKaspian } from 'kprovider'
import { useEffect } from 'react'
import { CopyIcon, Moon, Sun } from 'lucide-react'
import { useKaspian } from 'kaspianprovider'
import { toast } from 'sonner'
import Connect from './pages/Connection'
import Account from './pages/Account'
import {
Expand All @@ -8,13 +11,10 @@ import {
SelectTrigger,
SelectValue,
} from "@/components/ui/select"
import { useEffect } from 'react'
import useAccount from './hooks/useAccount'
import { Button } from './components/ui/button'
import { CopyIcon, Moon, Sun } from 'lucide-react'
import { useTheme } from './hooks/useTheme'
import useIndexer from './hooks/useIndexer'
import { toast } from 'sonner'
import useAccount from './hooks/useAccount'

function App() {
const { account } = useKaspian()
Expand Down
6 changes: 3 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import ReactDOM from 'react-dom/client'
import App from './App'
import { KaspianProvider } from 'kprovider'
import "./style.css"
import { KaspianProvider } from 'kaspianprovider'
import { AccountProvider } from './contexts/Account'
import { ThemeProvider } from './contexts/Theme'
import { IndexerProvider } from './contexts/Indexer'
import { Toaster } from "@/components/ui/sonner"
import "./style.css"

import * as kaspa from "@/../wasm"
import wasmBinary from "../wasm/kaspa_bg.wasm?url"
import { IndexerProvider } from './contexts/Indexer'

kaspa.default(wasmBinary)

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Account.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
import Tokens from "./Account/Tokens"
import Mintage from "./Account/Mintage"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"

function Account () {
return (
Expand Down
16 changes: 8 additions & 8 deletions src/pages/Account/Mintage.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { CoinsIcon } from "lucide-react"
import useAccount from "@/hooks/useAccount"
import { useEffect, useState } from "react"
import { Address, ScriptBuilder, XOnlyPublicKey, addressFromScriptPublicKey } from '@/../wasm'
import { CoinsIcon } from "lucide-react"
import { Inscription } from 'kasplexbuilder'
import { useKaspian } from 'kprovider'
import { useKaspian } from 'kaspianprovider'
import { toast } from "sonner"
import { Address, ScriptBuilder, XOnlyPublicKey, addressFromScriptPublicKey } from '@/../wasm'
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Label } from "@/components/ui/label"
import useIndexer from "@/hooks/useIndexer"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { toast } from "sonner"
import useIndexer from "@/hooks/useIndexer"
import useAccount from "@/hooks/useAccount"

function Mintage () {
const { address } = useAccount()
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Account/Tokens.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { RefreshCcwIcon } from "lucide-react"
import Transfer from "./Tokens/Transact"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import useAccount from "@/hooks/useAccount"

function Tokens () {
Expand Down
14 changes: 7 additions & 7 deletions src/pages/Account/Tokens/Transact.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useEffect, useState } from 'react'
import { CoinsIcon, SendIcon } from 'lucide-react'
import { Inscription } from 'kasplexbuilder'
import { useKaspian } from 'kaspianprovider'
import { toast } from 'sonner'
import { Address, ScriptBuilder, XOnlyPublicKey, addressFromScriptPublicKey } from '@/../wasm'
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog'
import { Button } from '@/components/ui/button'
import { useEffect, useState } from 'react'
import { Input } from '@/components/ui/input'
import { useKaspian } from 'kprovider'
import { Address, ScriptBuilder, XOnlyPublicKey, addressFromScriptPublicKey } from '@/../wasm'
import { Inscription } from 'kasplexbuilder'
import useAccount from '@/hooks/useAccount'
import { CoinsIcon, SendIcon } from 'lucide-react'
import useIndexer from '@/hooks/useIndexer'
import { toast } from 'sonner'
import useAccount from '@/hooks/useAccount'

function Transfer ({ ticker }: {
ticker: string
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Connection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useKaspian } from 'kprovider'
import { useKaspian } from 'kaspianprovider'
import { Button } from '@/components/ui/button'
import {
Card,
Expand Down

0 comments on commit 4ad6ba1

Please sign in to comment.