-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from TosiDrop/master
Release 3.3.0
- Loading branch information
Showing
21 changed files
with
372 additions
and
89 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import useBanner from "src/hooks/useBanner"; | ||
|
||
export default function Banner() { | ||
const { bannerText } = useBanner(); | ||
|
||
return bannerText ? ( | ||
<div className="background-see-through p-2.5 w-full text-center"> | ||
{bannerText} | ||
</div> | ||
) : null; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export namespace MinswapTypes { | ||
export interface PriceInfoMap { | ||
[key: string]: PriceInfo; | ||
} | ||
|
||
export interface PriceInfo { | ||
base_id: string; | ||
base_name: string; | ||
base_symbol: string; | ||
quote_id: string; | ||
quote_name: string; | ||
quote_symbol: string; | ||
last_price: string; | ||
base_volume: string; | ||
quote_volume: string; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export namespace VmTypes { | ||
export interface Settings { | ||
withdrawal_fee: number; | ||
epoch: number; | ||
switching_epoch: boolean; | ||
frontend_version: string; | ||
backend_version: string; | ||
min_balance: number; | ||
confirmations_required: number; | ||
max_assets_in_request?: number; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { useEffect, useState } from "react"; | ||
import { getBannerText } from "src/services/common"; | ||
|
||
export default function useBanner() { | ||
const [bannerText, setBannerText] = useState(""); | ||
|
||
useEffect(() => { | ||
(async () => { | ||
const bannerText = await getBannerText(); | ||
try { | ||
if (bannerText) { | ||
setBannerText(bannerText); | ||
} | ||
} catch (e) {} | ||
})(); | ||
}, []); | ||
|
||
return { | ||
bannerText, | ||
}; | ||
} |
Oops, something went wrong.