POW everything

This commit is contained in:
2023-08-18 17:56:50 +01:00
parent 2a851c442d
commit 1c5e61e020
7 changed files with 49 additions and 24 deletions

View File

@ -157,6 +157,24 @@ const PreferencesPage = () => {
</div>
</div>
</div>
<div className="card flex">
<div className="flex f-col f-grow">
<div>
<FormattedMessage defaultMessage="Proof of Work" />
</div>
<small>
<FormattedMessage defaultMessage="Amount of work to apply to all published events" />
</small>
</div>
<div>
<input
type="number"
defaultValue={perf.pow}
min={0}
onChange={e => updatePreferences(login, { ...perf, pow: parseInt(e.target.value || "0") })}
/>
</div>
</div>
<div className="card flex">
<div className="flex f-col f-grow">
<div>