diff --git a/explorer/public/tokens/serum-32.png b/explorer/public/tokens/serum-32.png new file mode 100644 index 000000000..83881ecf0 Binary files /dev/null and b/explorer/public/tokens/serum-32.png differ diff --git a/explorer/public/tokens/serum-64.png b/explorer/public/tokens/serum-64.png new file mode 100644 index 000000000..c3d44a0a8 Binary files /dev/null and b/explorer/public/tokens/serum-64.png differ diff --git a/explorer/src/components/SearchBar.tsx b/explorer/src/components/SearchBar.tsx index 8d6ed7dd4..3b27b4755 100644 --- a/explorer/src/components/SearchBar.tsx +++ b/explorer/src/components/SearchBar.tsx @@ -3,13 +3,16 @@ import bs58 from "bs58"; import { useHistory, useLocation } from "react-router-dom"; import Select, { InputActionMeta, ActionMeta, ValueType } from "react-select"; import StateManager from "react-select"; -import { PROGRAM_IDS, SYSVAR_IDS } from "utils/tx"; +import { PROGRAM_IDS, SYSVAR_IDS, ProgramName } from "utils/tx"; +import { TokenRegistry } from "tokenRegistry"; +import { Cluster, useCluster } from "providers/cluster"; export function SearchBar() { const [search, setSearch] = React.useState(""); const selectRef = React.useRef | null>(null); const history = useHistory(); const location = useLocation(); + const { cluster } = useCluster(); const onChange = ({ pathname }: ValueType, meta: ActionMeta) => { if (meta.action === "select-option") { @@ -29,9 +32,9 @@ export function SearchBar() {