@gearbox-protocol/ui-kit 4.4.1 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/base/review-button/constants.cjs +1 -1
- package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/esm/components/base/review-button/constants.js +2 -1
- package/dist/esm/components/base/review-button/review-button.js +34 -21
- package/dist/esm/components/graph/graph.js +367 -360
- package/dist/esm/locale/en.json.js +1 -1
- package/dist/types/components/base/review-button/constants.d.ts +1 -0
- package/dist/types/components/base/review-button/review-button.d.ts +7 -1
- package/dist/types/locale/en.json.d.ts +1 -1
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@ const e = {
|
|
|
42
42
|
"components.poolAssetsTable.cap": "Cap",
|
|
43
43
|
"components.poolAssetsTable.capUtilization": "Cap Utilization",
|
|
44
44
|
"components.poolAssetsTable.capBelowExposure.tip": "The curator has lowered the cap below current exposure. Exposure cannot be increased.",
|
|
45
|
-
"components.poolTable.line.rwa.tip": "This is RWA
|
|
45
|
+
"components.poolTable.line.rwa.tip": "This market is exposed to RWA assets.",
|
|
46
46
|
"components.strategiesTable.line.name.disabled": "This Leverage Opportunity is currently not available",
|
|
47
47
|
"components.strategiesTable.line.rwa": "RWA",
|
|
48
48
|
"components.strategiesTable.line.rwa.tip": "This Leverage Opportunity is available on RWA market.",
|
|
@@ -3,6 +3,10 @@ import { FormattedMessageTypedProps } from '../../typed-intl';
|
|
|
3
3
|
import { LocaleKeys } from '../../../locale';
|
|
4
4
|
import { ReviewButtonTest } from './constants';
|
|
5
5
|
export { ReviewButtonTest };
|
|
6
|
+
export interface ReviewButtonSolution {
|
|
7
|
+
readonly label: FormattedMessageTypedProps;
|
|
8
|
+
readonly onClick: () => void;
|
|
9
|
+
}
|
|
6
10
|
export interface ReviewButtonProps {
|
|
7
11
|
readonly disabled: boolean;
|
|
8
12
|
/** What blocks the action; takes the button's own label while it is set. */
|
|
@@ -14,6 +18,8 @@ export interface ReviewButtonProps {
|
|
|
14
18
|
* the same `<FormattedMessageTyped>` wrapper.
|
|
15
19
|
*/
|
|
16
20
|
readonly tip?: FormattedMessageTypedProps;
|
|
21
|
+
/** Shown inside the tip. */
|
|
22
|
+
readonly solution?: ReviewButtonSolution;
|
|
17
23
|
readonly onClick: () => void;
|
|
18
24
|
readonly label?: LocaleKeys;
|
|
19
25
|
}
|
|
@@ -24,4 +30,4 @@ export interface ReviewButtonProps {
|
|
|
24
30
|
* above — the arrangement the confirm screen already uses, so a dialog and its
|
|
25
31
|
* confirmation report the same refusal the same way.
|
|
26
32
|
*/
|
|
27
|
-
export declare function ReviewButton({ disabled, error, tip, onClick, label, }: ReviewButtonProps): React.ReactElement;
|
|
33
|
+
export declare function ReviewButton({ disabled, error, tip, solution, onClick, label, }: ReviewButtonProps): React.ReactElement;
|
|
@@ -54,7 +54,7 @@ declare const _default: {
|
|
|
54
54
|
"components.poolAssetsTable.capUtilization": "Cap Utilization",
|
|
55
55
|
"components.poolAssetsTable.capBelowExposure.tip": "The curator has lowered the cap below current exposure. Exposure cannot be increased.",
|
|
56
56
|
|
|
57
|
-
"components.poolTable.line.rwa.tip": "This is RWA
|
|
57
|
+
"components.poolTable.line.rwa.tip": "This market is exposed to RWA assets.",
|
|
58
58
|
|
|
59
59
|
"components.strategiesTable.line.name.disabled": "This Leverage Opportunity is currently not available",
|
|
60
60
|
|