mirror of
https://github.com/Reckless-Satoshi/robosats.git
synced 2024-09-11 11:55:26 +03:00
Update order navbar on time
This commit is contained in:
parent
daf9ce4d3f
commit
cac8856d23
@ -67,9 +67,11 @@ const RobotProfile = ({
|
||||
};
|
||||
|
||||
const handleChangeSlot = (e: SelectChangeEvent<number | 'loading'>): void => {
|
||||
garage.currentSlot = e.target.value;
|
||||
setInputToken(garage.getSlot()?.token ?? '');
|
||||
setLoading(true);
|
||||
if (e?.target?.value) {
|
||||
garage.setCurrentSlot(e.target.value as string);
|
||||
setInputToken(garage.getSlot()?.token ?? '');
|
||||
setLoading(true);
|
||||
}
|
||||
};
|
||||
|
||||
const slot = garage.getSlot();
|
||||
|
@ -71,7 +71,7 @@ const RobotPage = (): JSX.Element => {
|
||||
encPrivKey: key.encryptedPrivateKeyArmored,
|
||||
});
|
||||
void federation.fetchRobot(garage, token);
|
||||
garage.currentSlot = token;
|
||||
garage.setCurrentSlot(token);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Error:', error);
|
||||
|
@ -106,6 +106,11 @@ class Garage {
|
||||
return slot;
|
||||
};
|
||||
|
||||
setCurrentSlot: (currentSlot: string) => void = (currentSlot) => {
|
||||
this.currentSlot = currentSlot;
|
||||
this.triggerHook('onRobotUpdate');
|
||||
};
|
||||
|
||||
// Robots
|
||||
createRobot: (token: string, shortAliases: string[], attributes: Record<any, any>) => void = (
|
||||
token,
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "L'ordre ha expirat",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Encara no pots prendre cap ordre! Espera {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "Tu reps via Lightning {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "Reps via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "Tu reps via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "Tu envies via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "Envies via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Prima: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Nabídka vypršela",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Nabídku nemůžeš zatím příjmout! Počkej {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Přirážka: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Die Order ist abgelaufen",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Du kannst noch keine Order annehmen! Warte {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Aufschlag: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "The order has expired",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "La orden ha expirado",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "¡No puedes tomar una orden aún! Espera {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Prima: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Eskaera iraungi da",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Oraindik ezin duzu eskaerarik hartu! Itxaron{{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Prima: %{{premium}}",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "L'ordre a expiré",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Vous ne pouvez pas encore prendre un ordre! Attendez {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "Vous recevez via Lightning {{amount}} Sats (environ)",
|
||||
"You receive via {{method}} {{amount}}": "Vous recevez via {{méthode}} {{montant}}",
|
||||
"You receive {{amount}} Sats (Approx)": "Vous recevez via Lightning {{amount}} Sats (environ)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "Vous envoyez via Lightning {{amount}} Sats (environ)",
|
||||
"You send via {{method}} {{amount}}": "Vous envoyez via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Prime: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "L'ordine è scaduto",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "La posizione appuntata è approssimativa. La posizione esatta del luogo dell'incontro deve essere indicata nella chat crittografata.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Non puoi ancora accettare un ordine! Aspetta {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "Ricevi {{amount}} Sats via Lightning (approssimativo)",
|
||||
"You receive via {{method}} {{amount}}": "Ricevi {{amount}} via {{method}}",
|
||||
"You receive {{amount}} Sats (Approx)": "Ricevi {{amount}} Sats via Lightning (approssimativo)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "Invii {{amount}} Sats via Lightning (approssimativo)",
|
||||
"You send via {{method}} {{amount}}": "Invii {{amount}} via {{method}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Premio: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "注文は期限切れになりました",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "まだ注文を受け取ることはできません!{{timeMin}}分{{timeSec}}秒待ってください",
|
||||
"You receive {{amount}} Sats (Approx)": "ライトニングで{{amount}} Sats(約)を受け取ります",
|
||||
"You receive via {{method}} {{amount}}": "{{method}}で{{amount}}を受け取ります",
|
||||
"You receive {{amount}} Sats (Approx)": "ライトニングで{{amount}} Sats(約)を受け取ります",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "ライトニングで{{amount}} Sats(約)を送信します",
|
||||
"You send via {{method}} {{amount}}": "{{method}}で{{amount}}を送信します",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - プレミアム: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Zamówienie wygasło",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Nie możesz jeszcze przyjąć zamówienia! Czekać {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Premia: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "A ordem expirou",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Você ainda não pode fazer um pedido! Espere {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Prêmio: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Срок действия ордера истёк",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "Закрепленное местоположение является приблизительным. Точное местоположение места встречи необходимо сообщить в зашифрованном чате.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Вы ещё не можете взять ордер! Подождите {{timeMin}}м {{timeSec}}с",
|
||||
"You receive {{amount}} Sats (Approx)": "Вы получаете через Lightning {{amount}} Сатоши (приблизительно)",
|
||||
"You receive via {{method}} {{amount}}": "Вы получаете через {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "Вы получаете через Lightning {{amount}} Сатоши (приблизительно)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "Вы отправляете через Lightning {{amount}} Сатоши (приблизительно)",
|
||||
"You send via {{method}} {{amount}}": "Вы отправляете через {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Наценка: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Ordern har förfallit",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Du kan inte ta en order ännu! Vänta {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "Agizo limekwisha muda",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "Hauwezi kuchukua agizo bado! Subiri {{timeMin}}m {{timeSec}}s",
|
||||
"You receive {{amount}} Sats (Approx)": "Utapokea kupitia Lightning {{amount}} Sats (Takriban)",
|
||||
"You receive via {{method}} {{amount}}": "Utapokea kupitia {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "Utapokea kupitia Lightning {{amount}} Sats (Takriban)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "Utatuma kupitia Lightning {{amount}} Sats (Takriban)",
|
||||
"You send via {{method}} {{amount}}": "Utatuma kupitia {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "รายการหมดอายุแล้ว",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "คุณยังไม่สามารถดำเนินรายการได้! รออีก {{timeMin}} นาที {{timeSec}} วินาที",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "You receive via {{method}} {{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "You send via {{method}} {{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - ค่าพรีเมี่ยม: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "订单已到期",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "你暂时还不能吃单!请等{{timeMin}}分 {{timeSec}}秒",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "你通过{{method}}接收{{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "你通过{{method}}发送{{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - 溢价: {{premium}}%",
|
||||
|
@ -464,8 +464,8 @@
|
||||
"The order has expired": "訂單已到期",
|
||||
"The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.": "The pinned location is approximate. The exact location for the meeting place must be exchanged in the encrypted chat.",
|
||||
"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s": "你暫時還不能吃單!請等{{timeMin}}分 {{timeSec}}秒",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You receive via {{method}} {{amount}}": "你通過{{method}}接收{{amount}}",
|
||||
"You receive {{amount}} Sats (Approx)": "You receive {{amount}} Sats (Approx)",
|
||||
"You send via Lightning {{amount}} Sats (Approx)": "You send via Lightning {{amount}} Sats (Approx)",
|
||||
"You send via {{method}} {{amount}}": "你通過{{method}}發送{{amount}}",
|
||||
"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%": "{{price}} {{currencyCode}}/BTC - 溢價: {{premium}}%",
|
||||
|
Loading…
Reference in New Issue
Block a user