Skip to content

Commit

Permalink
Поправил стили
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 14, 2024
1 parent 5de859f commit 6b1a7b1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/src/assets/daw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/src/components/AddTagMenu/AddTagMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class AddTagMenu extends ScReact.Component<AddTagMenuProps, any> {
<Img src="tag.svg" className="icon"/>
</div>
<form className={'add-tag__input-container ' + (this.state.open ? 'open' : '')} ref={ref => this.inputContainerRef = ref} onsubmit={this.handleSubmit}>
<input type="text" placeholder="Введите тэг" ref={ref => this.inputRef = ref}/>
<input type="text" placeholder="Добавить тэг" ref={ref => this.inputRef = ref}/>
<button type="submit" onclick={this.handleSubmit}>
<Img src="daw.svg" className="success-icon"/>
</button>
Expand Down
1 change: 0 additions & 1 deletion public/src/components/TagsFilter/TagsFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class TagsFilter extends ScReact.Component<TagsFilterProps, TagsFilterSta
}

closeMenu = () => {
console.log("closeMenu")
this.setState(state => ({
...state,
menuOpen: false
Expand Down
5 changes: 0 additions & 5 deletions public/src/modules/stores/NoteStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,34 +92,29 @@ class NoteStore extends BaseStore<NoteStoreState> {
};

private setNote = (note: any) => {
console.log("setNote")
this.SetState(state => ({
...state,
note: note
}));
};

private changeTitle = (title: string) => {
console.log("changeTitle")
this.state.note.title = title;
this.onNoteChanged()
};

private changeContent = (content: any) => {
console.log("changeContent")
this.state.note.blocks = content
this.onNoteChanged()
}

private onNoteChanged = () => {
console.log("onNoteChanged")
if (AppNotesStore.state.selectedNote) {
this.saveNote({id: AppNotesStore.state.selectedNote.id, parent: AppNotesStore.state.selectedNote.parent, note: this.state.note});
}
}

private clearNote = () => {
console.log("clearNote")
this.SetState(state => ({
...state,
note: {
Expand Down

0 comments on commit 6b1a7b1

Please sign in to comment.