chore: Update translations
All checks were successful
continuous-integration/drone/push Build is passing

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"; import { UploadProgress } from "Upload";
export default function FileUploadProgress({ progress }: { progress: Array<UploadProgress> }) { export default function FileUploadProgress({ progress }: { progress: Array<UploadProgress> }) {
return <div className="flex-column g8"> return (
{progress.map(p => <div className="flex-column g2" id={p.id}> <div className="flex-column g8">
{p.file.name} {progress.map(p => (
<Progress value={p.progress} /> <div className="flex-column g2" id={p.id}>
</div>)} {p.file.name}
<Progress value={p.progress} />
</div>
))}
</div> </div>
} );
}

View File

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

View File

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

View File

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