mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-23 08:13:24 +00:00
Merge pull request #1823 from RoboSats/display-swaps-support-in-order-details
Display swaps support in order details
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -170,9 +170,6 @@ jobs:
|
|||||||
path: .
|
path: .
|
||||||
name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-mac-darwin-x64.zip
|
name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-mac-darwin-x64.zip
|
||||||
|
|
||||||
- name: List macOS build directory
|
|
||||||
run: ls -la
|
|
||||||
|
|
||||||
- name: 'Upload macOS Build Artifact'
|
- name: 'Upload macOS Build Artifact'
|
||||||
id: upload-release-mac-zip-asset
|
id: upload-release-mac-zip-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
@ -71,6 +71,10 @@ const OrderDetails = ({
|
|||||||
setCurrencyCode(currencies[(currentOrder?.currency ?? 1).toString()]);
|
setCurrencyCode(currencies[(currentOrder?.currency ?? 1).toString()]);
|
||||||
}, [currentOrder]);
|
}, [currentOrder]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!coordinator?.info) coordinator?.loadInfo();
|
||||||
|
}, [coordinator.shortAlias, coordinator.info]);
|
||||||
|
|
||||||
const amountString = useMemo(() => {
|
const amountString = useMemo(() => {
|
||||||
if (currentOrder === null) return;
|
if (currentOrder === null) return;
|
||||||
|
|
||||||
@ -262,7 +266,6 @@ const OrderDetails = ({
|
|||||||
onClickCoordinator();
|
onClickCoordinator();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{' '}
|
|
||||||
<Grid container direction='row' justifyContent='center' alignItems='center'>
|
<Grid container direction='row' justifyContent='center' alignItems='center'>
|
||||||
<Grid item xs={2}>
|
<Grid item xs={2}>
|
||||||
<RobotAvatar
|
<RobotAvatar
|
||||||
@ -277,6 +280,15 @@ const OrderDetails = ({
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
|
{coordinator?.info && !coordinator?.info?.swap_enabled && (
|
||||||
|
<ListItem>
|
||||||
|
<Grid sx={{ marginBottom: 1 }}>
|
||||||
|
<Alert severity='warning' sx={{ marginTop: 2 }}>
|
||||||
|
{t('This coordinator does not support on-chain swaps.')}
|
||||||
|
</Alert>
|
||||||
|
</Grid>
|
||||||
|
</ListItem>
|
||||||
|
)}
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user