run yarn format
This commit is contained in:
parent
a7fc2c6c4d
commit
7790b7e062
|
@ -15,7 +15,9 @@ export const formatTokenMints = (symbols: { [name: string]: string }) => {
|
|||
|
||||
const useMarket = () => {
|
||||
const market = useMangoStore((state) => state.selectedMarket.current)
|
||||
const selectedMarketName = useMangoStore((state) => state.selectedMarket.config.name)
|
||||
const selectedMarketName = useMangoStore(
|
||||
(state) => state.selectedMarket.config.name
|
||||
)
|
||||
const { programId } = useConnection()
|
||||
|
||||
const marketAddress = useMemo(
|
||||
|
|
|
@ -11,10 +11,11 @@ const useMarketList = () => {
|
|||
const { cluster, programId, dexProgramId } = useConnection()
|
||||
|
||||
const spotMarkets = useMemo(
|
||||
() => config.spotMarkets.reduce((acc, market) => {
|
||||
acc[market.name] = market.publicKey.toBase58()
|
||||
return acc;
|
||||
}, {}) || {},
|
||||
() =>
|
||||
config.spotMarkets.reduce((acc, market) => {
|
||||
acc[market.name] = market.publicKey.toBase58()
|
||||
return acc
|
||||
}, {}) || {},
|
||||
[cluster, mangoGroupName]
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
import { useMemo, useState } from 'react'
|
||||
|
||||
export function useSortableData<T>(items: T[], config = null): { items: T[], requestSort: any, sortConfig: any } {
|
||||
export function useSortableData<T>(
|
||||
items: T[],
|
||||
config = null
|
||||
): { items: T[]; requestSort: any; sortConfig: any } {
|
||||
const [sortConfig, setSortConfig] = useState(config)
|
||||
|
||||
const sortedItems = useMemo(() => {
|
||||
|
|
Loading…
Reference in New Issue