@rango-dev/ui 0.46.2-next.1 → 0.46.2-next.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"StepDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,KAAwD,MAAM,OAAO,CAAC;AAgL7E,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
1
+ {"version":3,"file":"StepDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,KAAwD,MAAM,OAAO,CAAC;AAwL7E,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.46.2-next.1",
3
+ "version": "0.46.2-next.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -62,4 +62,4 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  }
65
- }
65
+ }
@@ -74,13 +74,21 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
74
74
  </SwapperImage>
75
75
  <Divider direction="horizontal" size={8} />
76
76
  <Typography size="medium" variant="label">
77
- {i18n.t({
78
- id: 'Swap on {fromChain} via {swapper}',
79
- values: {
80
- fromChain: step.from.chain.displayName,
81
- swapper: step.swapper.displayName,
82
- },
83
- })}
77
+ {step.from.chain.displayName === step.to.chain.displayName
78
+ ? i18n.t({
79
+ id: 'Swap on {fromChain} via {swapper}',
80
+ values: {
81
+ fromChain: step.from.chain.displayName,
82
+ swapper: step.swapper.displayName,
83
+ },
84
+ })
85
+ : i18n.t({
86
+ id: 'Bridge from {fromChain} via {swapper}',
87
+ values: {
88
+ fromChain: step.from.chain.displayName,
89
+ swapper: step.swapper.displayName,
90
+ },
91
+ })}
84
92
  </Typography>
85
93
  </div>
86
94
  )}