chore: Update translations
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Kieran 2023-10-16 10:09:08 +00:00
parent 6448996529
commit d9fc4f37b0
4 changed files with 38 additions and 32 deletions

View File

@ -2,10 +2,14 @@ import Progress from "Element/Progress";
import { UploadProgress } from "Upload";
export default function FileUploadProgress({ progress }: { progress: Array<UploadProgress> }) {
return <div className="flex-column g8">
{progress.map(p => <div className="flex-column g2" id={p.id}>
{p.file.name}
<Progress value={p.progress} />
</div>)}
return (
<div className="flex-column g8">
{progress.map(p => (
<div className="flex-column g2" id={p.id}>
{p.file.name}
<Progress value={p.progress} />
</div>
))}
</div>
}
);
}

View File

@ -303,18 +303,18 @@ export function NoteCreator() {
onChange={e => {
note.update(
v =>
(v.selectedCustomRelays =
// set false if all relays selected
e.target.checked &&
(v.selectedCustomRelays =
// set false if all relays selected
e.target.checked &&
note.selectedCustomRelays &&
note.selectedCustomRelays.length == a.length - 1
? undefined
: // otherwise return selectedCustomRelays with target relay added / removed
a.filter(el =>
el === r
? e.target.checked
: !note.selectedCustomRelays || note.selectedCustomRelays.includes(el),
)),
? undefined
: // otherwise return selectedCustomRelays with target relay added / removed
a.filter(el =>
el === r
? e.target.checked
: !note.selectedCustomRelays || note.selectedCustomRelays.includes(el),
)),
);
}}
/>
@ -386,9 +386,9 @@ export function NoteCreator() {
onChange={e =>
note.update(
v =>
(v.zapSplits = arr.map((vv, ii) =>
ii === i ? { ...vv, weight: Number(e.target.value) } : vv,
)),
(v.zapSplits = arr.map((vv, ii) =>
ii === i ? { ...vv, weight: Number(e.target.value) } : vv,
)),
)
}
/>

View File

@ -1,3 +1,3 @@
.zap-goal h1 {
line-height: 1em;
}
}

View File

@ -3,16 +3,18 @@ import "./Progress.css";
import { CSSProperties } from "react";
export default function Progress({ value }: { value: number }) {
const v = Math.max(0.01, Math.min(1, value));
return <div className="progress">
<div
style={
{
"--progress": `${v * 100}%`,
} as CSSProperties
}></div>
<span>
<FormattedNumber value={v} style="percent" />
</span>
const v = Math.max(0.01, Math.min(1, value));
return (
<div className="progress">
<div
style={
{
"--progress": `${v * 100}%`,
} as CSSProperties
}></div>
<span>
<FormattedNumber value={v} style="percent" />
</span>
</div>
}
);
}