mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
redesign move to notebook sheet
This commit is contained in:
@@ -116,11 +116,11 @@ export class AddTopicDialog extends React.Component {
|
||||
<DialogContainer>
|
||||
<DialogHeader
|
||||
icon="book-outline"
|
||||
title={this.toEdit ? 'Edit Topic' : 'New Topic'}
|
||||
title={this.toEdit ? 'Edit topic' : 'New topic'}
|
||||
paragraph={
|
||||
this.toEdit
|
||||
? 'Edit title of the topic'
|
||||
: 'Create a new topic in ' + this.notebook.title
|
||||
: 'Add a new topic in ' + this.notebook.title
|
||||
}
|
||||
padding={12}
|
||||
/>
|
||||
@@ -136,7 +136,7 @@ export class AddTopicDialog extends React.Component {
|
||||
}}
|
||||
blurOnSubmit={false}
|
||||
defaultValue={this.toEdit ? this.toEdit.title : null}
|
||||
placeholder="Enter title of topic"
|
||||
placeholder="Enter title"
|
||||
onSubmit={() => this.addNewTopic()}
|
||||
returnKeyLabel="Done"
|
||||
returnKeyType="done"
|
||||
@@ -144,7 +144,7 @@ export class AddTopicDialog extends React.Component {
|
||||
</View>
|
||||
|
||||
<DialogButtons
|
||||
positiveTitle={this.toEdit ? 'Save' : 'Create'}
|
||||
positiveTitle={this.toEdit ? 'Save' : 'Add'}
|
||||
onPressNegative={() => this.close()}
|
||||
onPressPositive={() => this.addNewTopic()}
|
||||
loading={this.state.loading}
|
||||
|
||||
Reference in New Issue
Block a user