-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename isFormattingActivated to getIsFormattingActivated
- Loading branch information
1 parent
6b41541
commit cbcc91a
Showing
5 changed files
with
19 additions
and
19 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
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,12 +1,12 @@ | ||
import isFormattingActivated from '../isFormattingActivated' | ||
import getIsFormattingActivated from '../getIsFormattingActivated' | ||
|
||
export const ENABLED_TEXT = 'Formatting: $(check)' | ||
export const DISABLED_TEXT = 'Formatting: $(x)' | ||
|
||
const getStatusBarText = () => { | ||
const shouldDisableFormatting = isFormattingActivated() | ||
const isFormattingActivated = getIsFormattingActivated() | ||
|
||
return shouldDisableFormatting ? ENABLED_TEXT : DISABLED_TEXT | ||
return isFormattingActivated ? ENABLED_TEXT : DISABLED_TEXT | ||
} | ||
|
||
export default getStatusBarText |
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