chore: Update translations
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kieran 2023-12-02 22:45:52 +00:00
parent cfb446c7c8
commit fadfdb576a
3 changed files with 70 additions and 66 deletions

View File

@ -152,16 +152,18 @@ export function NoteCreator() {
const ev = await buildNote();
if (ev) {
const events = (note.otherEvents ?? []).concat(ev);
events.map(a => sendEventToRelays(system, a, note.selectedCustomRelays, r => {
events.map(a =>
sendEventToRelays(system, a, note.selectedCustomRelays, r => {
if (CONFIG.noteCreatorToast) {
r.forEach(rr => {
Toastore.push({
element: <OkResponseRow rsp={rr} />,
expire: unixNow() + (rr.ok ? 5 : 55555)
})
expire: unixNow() + (rr.ok ? 5 : 55555),
});
});
}
}));
}),
);
note.update(n => n.reset());
}
}

View File

@ -28,7 +28,8 @@ export function OkResponseRow({ rsp }: { rsp: OkResponse }) {
setResult(rsp);
}
return <div className="flex items-center g16">
return (
<div className="flex items-center g16">
<Icon name={r.ok ? "check" : "x"} className={r.ok ? "success" : "error"} size={24} />
<div className="flex flex-col grow g4">
<b>{getRelayName(r.relay)}</b>
@ -57,4 +58,5 @@ export function OkResponseRow({ rsp }: { rsp: OkResponse }) {
</div>
)}
</div>
);
}