Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Jul 4, 2024
1 parent 29815c0 commit f16b89b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/app/withStarknetReactLatest/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import { constants } from "starknet"
import { disconnect } from "starknetkit-next"

const StarknetReactDappContent = () => {
const { account, status, isConnected } = useAccount()
const { connector } = useConnect()
const { account, isConnected } = useAccount()
const [chainId, setChainId] = useState<constants.StarknetChainId | undefined>(
undefined,
)
Expand Down
7 changes: 2 additions & 5 deletions src/app/withStarknetReactNext/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ import {
StarknetConfig,
publicProvider,
useAccount,
useWalletRequest,
} from "starknet-react-core-next"
import { Connector, StarknetkitConnector, disconnect } from "starknetkit-next"
import { disconnect } from "starknetkit-next"

const StarknetReactDappContent = () => {
const { account, status, isConnected } = useAccount()
const { account, isConnected } = useAccount()
const [chainId, setChainId] = useState<constants.StarknetChainId | undefined>(
undefined,
)

console.log({ account, isConnected })

useWaitForTx()

useEffect(() => {
Expand Down
1 change: 0 additions & 1 deletion src/components/connect/ConnectStarknetReactNext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const ConnectStarknetReactNext = () => {

return (
<Flex direction="column" gap="3" p="5">
{status}
<Flex direction="column" gap="3">
{connectors.filter(inAppBrowserFilter).map((connector) => {
if (!connector.available()) {
Expand Down

0 comments on commit f16b89b

Please sign in to comment.