Skip to content

Commit

Permalink
Remove grid alert when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Mar 11, 2025
1 parent 81c2b4d commit e479d7b
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/MakerForm/SelectCoordinator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ const SelectCoordinator: React.FC<SelectCoordinatorProps> = ({

return (
<Grid item>
<Grid sx={{ marginBottom: 1 }}>
{!coordinator?.info?.swap_enabled && (
{coordinator?.info && !coordinator?.info?.swap_enabled && (
<Grid sx={{ marginBottom: 1 }}>
<Alert severity='warning' sx={{ marginTop: 2 }}>
{t('This coordinator does not support on-chain swaps.')}
</Alert>
)}
</Grid>
</Grid>
)}
<Box
sx={{
backgroundColor: 'background.paper',
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Prenedor",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "El proveïdor de la infraestructura LN i comunicacions. L'amfitrió serà l'encarregat de donar suport i resoldre disputes. LEs comissions de les transaccions són fixades per l'amfitrió. Assegureu-vos de seleccionar només els amfitrions en què confieu!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "L'enrutament Lightning ha fallat",
"New chat message": "Nou missatge al xat",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Příjemce",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Tomador",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "Este coordinador no soporta pagos on-chain.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Enrutado Lightning fallido",
"New chat message": "Nuevo mensaje en el chat",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Hartzaile",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Preneur",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Échec routage Lightning",
"New chat message": "Nouveau message chat",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Routing Lightning fallito",
"New chat message": "Nuovo messaggio in chat",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "テイカー",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "ライトニングのルーティングに失敗しました",
"New chat message": "チャットに新しいメッセージがあります",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
3 changes: 2 additions & 1 deletion frontend/static/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "Nova mensagem de chat",
Expand Down Expand Up @@ -714,4 +715,4 @@
"This order has been cancelled collaborativelly": "This order has been cancelled collaboratively",
"This order is not available": "Esta ordem não está disponível",
"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/RoboSats/robosats/issues": "The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/RoboSats/robosats/issues"
}
}
1 change: 1 addition & 0 deletions frontend/static/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Тейкер",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Маршрутизация Lightning не удалась",
"New chat message": "Новое сообщение в чате",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Mpokeaji",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Uhamishaji wa Lightning umeshindwa",
"New chat message": "Ujumbe mpya wa mazungumzo",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "Taker",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "Lightning routing failed",
"New chat message": "New chat message",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/zh-SI.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "吃单方",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "闪电路由失败",
"New chat message": "新消息",
Expand Down
1 change: 1 addition & 0 deletions frontend/static/locales/zh-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"Onchain payouts enabled": "Onchain payouts enabled",
"Taker": "吃單方",
"The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!": "The provider the lightning and communication infrastructure. The host will be in charge of providing support and solving disputes. The trade fees are set by the host. Make sure to only select order hosts that you trust!",
"This coordinator does not support on-chain swaps.": "This coordinator does not support on-chain swaps.",
"#41": "Phrases in components/Notifications/index.tsx",
"Lightning routing failed": "閃電路由失敗",
"New chat message": "新消息",
Expand Down

0 comments on commit e479d7b

Please sign in to comment.