-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56. Fix the logical condition for displaying the warning. (#69)
Co-authored-by: nevendiulgerov <[email protected]> Co-authored-by: brunomenezes <[email protected]>
- Loading branch information
1 parent
b7f5686
commit 37045ff
Showing
10 changed files
with
166 additions
and
83 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
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,24 @@ | ||
import React from "react"; | ||
import { useApplicationsQuery } from "../graphql"; | ||
|
||
export const useSearchApplications = ({ | ||
address, | ||
limit, | ||
}: { | ||
address?: string; | ||
limit?: number; | ||
}) => { | ||
const [{ data: applicationData, fetching }] = useApplicationsQuery({ | ||
variables: { | ||
limit: limit ?? 10, | ||
where: { | ||
id_containsInsensitive: address ?? "", | ||
}, | ||
}, | ||
}); | ||
const applications = React.useMemo( | ||
() => (applicationData?.applications ?? []).map((a) => a.id), | ||
[applicationData], | ||
); | ||
return { applications, fetching }; | ||
}; |
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,27 @@ | ||
import React from "react"; | ||
import { useTokensQuery } from "../graphql"; | ||
|
||
export const useSearchTokens = ({ | ||
address, | ||
limit, | ||
}: { | ||
address?: string; | ||
limit?: number; | ||
}) => { | ||
const [{ data: tokenData, fetching }] = useTokensQuery({ | ||
variables: { | ||
limit: limit ?? 10, | ||
where: { | ||
id_containsInsensitive: address ?? "", | ||
}, | ||
}, | ||
}); | ||
const tokens = React.useMemo( | ||
() => | ||
(tokenData?.tokens ?? []).map( | ||
(a) => `${a.symbol} - ${a.name} - ${a.id}`, | ||
), | ||
[tokenData], | ||
); | ||
return { tokens, fetching }; | ||
}; |
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,14 +1,14 @@ | ||
export { Card } from "./Card"; | ||
export { ERC20DepositForm } from "./ERC20DepositForm"; | ||
export { EtherDepositForm } from "./EtherDepositForm"; | ||
export { | ||
InputContent, | ||
InputDetails, | ||
NoticeContent, | ||
ReportContent, | ||
VoucherContent, | ||
} from "./InputDetails"; | ||
export { ERC20DepositForm } from "./ERC20DepositForm"; | ||
export { EtherDepositForm } from "./EtherDepositForm"; | ||
export { RawInputForm } from "./RawInputForm"; | ||
export { Summary } from "./Summary"; | ||
export { SummaryCard } from "./SummaryCard"; | ||
export { TransactionProgress } from "./TransactionProgress"; | ||
export { Card } from "./Card"; |
Oops, something went wrong.