-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: code formatting and remove prettier
- Loading branch information
1 parent
35b4ba6
commit 6a7c441
Showing
5 changed files
with
40 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
## Summary | ||
|
||
## Check List | ||
|
||
- [ ] PR 제목을 commit convention에 맞게 작성 | ||
- [ ] reviewer 추가 | ||
|
||
## Issue | ||
|
||
- close # | ||
|
||
## Test | ||
__테스트 영상을 올리면 됩니다__ | ||
|
||
**테스트 영상을 올리면 됩니다** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import { observable, action } from "mobx"; | ||
import { createContext } from "react"; | ||
import {observable, action} from 'mobx'; | ||
import {createContext} from 'react'; | ||
|
||
export class Store { | ||
// input | ||
@observable | ||
input = ""; | ||
@action | ||
updateInput = (input) => { | ||
this.input = input; | ||
}; | ||
// input | ||
@observable | ||
input = ''; | ||
@action | ||
updateInput = input => { | ||
this.input = input; | ||
}; | ||
|
||
// selectedIndex | ||
@observable | ||
selectedIndex = 0; | ||
@action | ||
selectNext = () => { | ||
const index = this.selectedIndex + 1; | ||
if (index >= 0 && this.results.length > index) { | ||
this.selectedIndex = index; | ||
} | ||
}; | ||
@action | ||
selectPrev = () => { | ||
const index = this.selectedIndex - 1; | ||
if (index >= 0 && this.results.length > index) { | ||
this.selectedIndex = index; | ||
} | ||
}; | ||
} | ||
export const store = new Store(); | ||
export const StoreContext = createContext(store); | ||
// selectedIndex | ||
@observable | ||
selectedIndex = 0; | ||
@action | ||
selectNext = () => { | ||
const index = this.selectedIndex + 1; | ||
if (index >= 0 && this.results.length > index) { | ||
this.selectedIndex = index; | ||
} | ||
}; | ||
@action | ||
selectPrev = () => { | ||
const index = this.selectedIndex - 1; | ||
if (index >= 0 && this.results.length > index) { | ||
this.selectedIndex = index; | ||
} | ||
}; | ||
} | ||
|
||
export const store = new Store(); | ||
export const StoreContext = createContext(store); |