Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Normalize formatting of <Shortcuts> components
Browse files Browse the repository at this point in the history
Issue #1283
  • Loading branch information
pablosichert committed Nov 16, 2017
1 parent 4901400 commit 9dbf681
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 51 deletions.
18 changes: 9 additions & 9 deletions src/components/shortcuts/DocumentListContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class DocumentListContextShortcuts extends Component {

render() {
return (
<Shortcuts
name="DOCUMENT_LIST_CONTEXT"
handler = { this.handleShortcuts }
targetNodeSelector="body"
isolate = { true }
preventDefault = { true }
stopPropagation = { true }
/>
)
<Shortcuts
handler={this.handleShortcuts}
isolate
name="DOCUMENT_LIST_CONTEXT"
preventDefault
stopPropagation
targetNodeSelector="body"
/>
);
}
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/shortcuts/DocumentStatusContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class DocumentStatusContextShortcuts extends Component {
render() {
return (
<Shortcuts
alwaysFireHandler
handler={this.handleShortcuts}
isolate
name="DOCUMENT_STATUS_CONTEXT"
handler = { this.handleShortcuts }
targetNodeSelector = "body"
isolate = { true }
preventDefault = { true }
stopPropagation = { true }
alwaysFireHandler = { true }
preventDefault
stopPropagation
targetNodeSelector="body"
/>
)
);
}
}

Expand Down
18 changes: 9 additions & 9 deletions src/components/shortcuts/GlobalContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ class GlobalContextShortcuts extends Component {
render() {
return (
<Shortcuts
name = "GLOBAL_CONTEXT"
handler = { this.handleShortcuts }
targetNodeSelector = "body"
isolate = { true }
preventDefault = { true }
stopPropagation = { true }
global = {true}
alwaysFireHandler = { true }
alwaysFireHandler
global
handler={this.handleShortcuts}
isolate
name="GLOBAL_CONTEXT"
preventDefault
stopPropagation
targetNodeSelector="body"
/>
)
);
}
}

Expand Down
20 changes: 10 additions & 10 deletions src/components/shortcuts/ModalContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ class ModalContextShortcuts extends Component {

render() {
return (
<Shortcuts
name="MODAL_CONTEXT"
handler = { this.handleShortcuts }
targetNodeSelector = "body"
isolate = { true }
preventDefault = { true }
stopPropagation = { true }
alwaysFireHandler = { true }
/>
)
<Shortcuts
alwaysFireHandler
handler={this.handleShortcuts}
isolate
name="MODAL_CONTEXT"
preventDefault
stopPropagation
targetNodeSelector="body"
/>
);
}
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/shortcuts/PaginationContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ class PaginationContextShortcuts extends Component {
render() {
return (
<Shortcuts
name="PAGINATION_CONTEXT"
handler = { this.handleShortcuts }
targetNodeSelector = "body"
isolate = { true }
preventDefault = { true }
stopPropagation = { true }
global
handler={this.handleShortcuts}
isolate
name="PAGINATION_CONTEXT"
preventDefault
stopPropagation
targetNodeSelector="body"
/>
)
);
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/shortcuts/QuickActionsContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class QuickActionsContextShortcuts extends Component {

return (
<Shortcuts
name="QUICK_ACTIONS"
alwaysFireHandler
global
handler={this.handleShortcuts}
targetNodeSelector = "body"
isolate
global
name="QUICK_ACTIONS"
preventDefault
stopPropagation
alwaysFireHandler
targetNodeSelector="body"
/>
);
}
Expand Down
10 changes: 5 additions & 5 deletions src/components/shortcuts/TableContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ class TableContextShortcuts extends Component {
render() {
return (
<Shortcuts
name="TABLE_CONTEXT"
alwaysFireHandler
global
handler={this.handleShortcuts}
targetNodeSelector="body"
isolate
name="TABLE_CONTEXT"
preventDefault
stopPropagation
alwaysFireHandler
global
targetNodeSelector="body"
/>
)
);
}
}

Expand Down

0 comments on commit 9dbf681

Please sign in to comment.