run yarn format

This commit is contained in:
Tyler Shipe 2021-08-17 16:51:02 -04:00
parent a7fc2c6c4d
commit 7790b7e062
3 changed files with 12 additions and 6 deletions

View File

@ -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(

View File

@ -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]
)

View File

@ -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(() => {