blob: dbc216e11cbc62b75174174ba9e7aade747c8f5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import React from 'react';
import OperationDialog from '../common/OperationDialog';
export interface ChangeNicknameDialogProps {
open: boolean;
close: () => void;
onProcess: (newNickname: string) => Promise<void>;
}
const ChangeNicknameDialog: React.FC<ChangeNicknameDialogProps> = props => {
return (
<OperationDialog
open={props.open}
title="userPage.dialogChangeNickname.title"
titleColor="default"
inputScheme={[
{ type: 'text', label: 'userPage.dialogChangeNickname.inputLabel' }
]}
onProcess={([newNickname]) => {
return props.onProcess(newNickname as string);
}}
close={props.close}
/>
);
};
export default ChangeNicknameDialog;
|