-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tbtc-api-retries
- Loading branch information
Showing
19 changed files
with
85 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
# Network | ||
VITE_USE_TESTNET=true | ||
|
||
# Configuration of sentry.io | ||
VITE_SENTRY_SUPPORT=false | ||
# TODO: Sentry DSN will be added during the application building process when it is ready | ||
VITE_SENTRY_DSN="" | ||
|
||
# TODO: Use a more general source | ||
VITE_ETH_HOSTNAME_HTTP="https://sepolia.infura.io/v3/c80e8ccdcc4c4a809bce4fc165310617" | ||
# Basic UI settings | ||
VITE_REFERRAL=0 | ||
|
||
# ENDPOINTS | ||
VITE_TBTC_API_ENDPOINT="" | ||
# Endpoints | ||
VITE_ETH_HOSTNAME_HTTP="" | ||
VITE_ACRE_API_ENDPOINT="http://localhost:8788/api/v1/" | ||
VITE_TBTC_API_ENDPOINT="http://localhost:8788/tbtc-api/v1/" | ||
|
||
# API KEYS | ||
# API keys | ||
VITE_GELATO_RELAY_API_KEY="htaJCy_XHj8WsE3w53WBMurfySDtjLP_TrNPPa6IPIc_" # this key should not be used on production | ||
# Get the API key from: https://thegraph.com/studio/apikeys/. | ||
VITE_SUBGRAPH_API_KEY="" | ||
|
||
# Sentry | ||
VITE_SENTRY_SUPPORT=false | ||
VITE_SENTRY_DSN="" | ||
|
||
# Posthog | ||
VITE_POSTHOG_API_HOST="https://us.i.posthog.com" | ||
VITE_POSTHOG_API_KEY="" | ||
|
||
# Feature flags | ||
VITE_FEATURE_FLAG_WITHDRAWALS_ENABLED="false" | ||
VITE_FEATURE_FLAG_OKX_WALLET_ENABLED="false" | ||
VITE_FEATURE_FLAG_XVERSE_WALLET_ENABLED="false" | ||
VITE_FEATURE_FLAG_WITHDRAWALS_ENABLED="true" | ||
VITE_FEATURE_FLAG_OKX_WALLET_ENABLED="true" | ||
VITE_FEATURE_FLAG_XVERSE_WALLET_ENABLED="true" | ||
VITE_FEATURE_FLAG_ACRE_POINTS_ENABLED="true" | ||
VITE_FEATURE_FLAG_TVL_ENABLED="true" | ||
VITE_FEATURE_GATING_DAPP_ENABLED="true" | ||
VITE_FEATURE_POSTHOG_ENABLED="true" | ||
VITE_FEATURE_POSTHOG_ENABLED="false" | ||
VITE_FEATURE_MOBILE_MODE_ENABLED="true" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import React, { useState } from "react" | ||
import { Box, Tooltip as ChakraTooltip, TooltipProps } from "@chakra-ui/react" | ||
import { Tooltip as ChakraTooltip, TooltipProps, Flex } from "@chakra-ui/react" | ||
|
||
export default function Tooltip(props: TooltipProps) { | ||
const { children, ...restProps } = props | ||
const [isOpen, setIsOpen] = useState(false) | ||
|
||
return ( | ||
<ChakraTooltip isOpen={isOpen} {...restProps}> | ||
<Box | ||
<Flex | ||
onMouseEnter={() => setIsOpen(true)} | ||
onMouseLeave={() => setIsOpen(false)} | ||
onClick={() => setIsOpen(true)} | ||
> | ||
{children} | ||
</Box> | ||
</Flex> | ||
</ChakraTooltip> | ||
) | ||
} |
13 changes: 9 additions & 4 deletions
13
dapp/src/components/shared/InfoTooltip.tsx → dapp/src/components/shared/TooltipIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import { selectActivities } from "#/store/wallet" | ||
import { selectActivities, selectHasPendingActivities } from "#/store/wallet" | ||
import { useAppSelector } from "./useAppSelector" | ||
|
||
export default function useActivities() { | ||
return useAppSelector(selectActivities) | ||
const activities = useAppSelector(selectActivities) | ||
const hasPendingActivities = useAppSelector(selectHasPendingActivities) | ||
|
||
return { activities, hasPendingActivities } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.