Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 committed May 14, 2024
1 parent d37e0df commit dd349a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 4 additions & 15 deletions src/components/Molecules/SearchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { useCallback, useState } from "react";
import { Input } from "@/components/ui/input";
import { useDebounce } from "@/utils/hooks/use-debounce";
import {
AddressActivityListView,
TransactionReceiptView,
} from "@/components/Organisms";
import { AddressDetails } from "../";
import { AddressActivityView } from "@/components/Organisms";
import { TransactionReceipt } from "../";
import { ChainSelector } from "../ChainSelector/ChainSelector";
import { useGoldRush } from "@/utils/store";
import { BlockDetails } from "../BlockDetails/BlockDetails";
Expand Down Expand Up @@ -34,19 +31,11 @@ export const SearchBar: React.FC = () => {
const handleResults = useCallback(() => {
switch (searchType) {
case "address": {
return (
<div className="flex w-full flex-col gap-y-8">
<AddressDetails
address={searchInput}
chain_name={selectedChain?.name as Chain}
/>
<AddressActivityListView address={searchInput} />
</div>
);
return <AddressActivityView address={searchInput} />;
}
case "tx": {
return (
<TransactionReceiptView
<TransactionReceipt
chain_name={selectedChain?.name as Chain}
tx_hash={searchInput}
/>
Expand Down
5 changes: 5 additions & 0 deletions src/components/Molecules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export { ChainSelector } from "./ChainSelector/ChainSelector";
export { GasCard } from "./GasCard/GasCard";
export { LatestBlocks } from "./LatestBlocks/LatestBlocks";
export { LatestPrice } from "./LatestPrice/LatestPrice";
export { LatestTransactions } from "./LatestTransactions/LatestTransactions";
export { NFTCollectionDetails } from "./NFTCollectionDetails/NFTCollectionDetails";
export { NFTCollectionTokensList } from "./NFTCollectionTokensList/NFTCollectionTokensList";
export { NFTFloorPrice } from "./NFTFloorPrice/NFTFloorPrice";
Expand All @@ -25,8 +26,12 @@ export { XYKPoolTimeseries } from "./XYKPoolTimeseries/XYKPoolTimeseries";
export { XYKPoolTransactionsList } from "./XYKPoolTransactionsList/XYKPoolTransactionsList";
export { XYKTimeseries } from "./XYKTimeseries/XYKTimeseries";
export { XYKTokenDetails } from "./XYKTokenDetails/XYKTokenDetails";
export { XYKTokenList } from "./XYKTokenList/XYKTokenList";
export { XYKTokenPoolList } from "./XYKTokenPoolList/XYKTokenPoolList";
export { XYKTokenTimeseries } from "./XYKTokenTimeseries/XYKTokenTimeseries";
export { XYKTokenTransactionsList } from "./XYKTokenTransactionsList/XYKTokenTransactionsList";
export { XYKTransactionsList } from "./XYKTransactionsList/XYKTransactionsList";
export { XYKWalletDetails } from "./XYKWalletDetails/XYKWalletDetails";
export { XYKWalletPoolList } from "./XYKWalletPoolList/XYKWalletPoolList";
export { XYKWalletPositionsList } from "./XYKWalletPositionsList/XYKWalletPositionsList";
export { XYKWalletTransactionsList } from "./XYKWalletTransactionsList/XYKWalletTransactionsList";

0 comments on commit dd349a3

Please sign in to comment.