refactor(Profile): add AsyncButton
This commit is contained in:
parent
0b7d070146
commit
57f86812b3
@ -16,6 +16,7 @@ import { HexKey } from "@snort/nostr";
|
||||
import useFileUpload from "Upload";
|
||||
|
||||
import messages from "./messages";
|
||||
import AsyncButton from '../../Element/AsyncButton';
|
||||
|
||||
export interface ProfileSettingsProps {
|
||||
avatar?: boolean;
|
||||
@ -166,9 +167,9 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
|
||||
<div className="form-group card">
|
||||
<div></div>
|
||||
<div>
|
||||
<button type="button" onClick={() => saveProfile()}>
|
||||
<AsyncButton onClick={() => saveProfile()}>
|
||||
<FormattedMessage {...messages.Save} />
|
||||
</button>
|
||||
</AsyncButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user