1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Tools: Apply rule @typescript-eslint/type-annotation-spacing

This commit is contained in:
Laurent Cozic
2020-11-12 19:13:28 +00:00
parent 62feb7ff60
commit d20694e52c
291 changed files with 2205 additions and 2203 deletions

View File

@@ -13,8 +13,8 @@ interface NoteToolbarProps {
toolbarButtonInfos: ToolbarButtonInfo[],
}
function styles_(props:NoteToolbarProps) {
return buildStyle('NoteToolbar', props.themeId, (theme:any) => {
function styles_(props: NoteToolbarProps) {
return buildStyle('NoteToolbar', props.themeId, (theme: any) => {
return {
root: {
...props.style,
@@ -25,14 +25,14 @@ function styles_(props:NoteToolbarProps) {
});
}
function NoteToolbar(props:NoteToolbarProps) {
function NoteToolbar(props: NoteToolbarProps) {
const styles = styles_(props);
return <ToolbarBase style={styles.root} items={props.toolbarButtonInfos} />;
}
const toolbarButtonUtils = new ToolbarButtonUtils(CommandService.instance());
const mapStateToProps = (state:any) => {
const mapStateToProps = (state: any) => {
const whenClauseContext = stateToWhenClauseContext(state);
return {