Skip to content

Commit

Permalink
Fixes #24475 - Add EmptyState to React components
Browse files Browse the repository at this point in the history
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
  • Loading branch information
boaz0 committed Aug 3, 2018
1 parent f22a6c6 commit 7b95d49
Show file tree
Hide file tree
Showing 17 changed files with 903 additions and 1,932 deletions.
6 changes: 6 additions & 0 deletions webpack/assets/javascripts/react_app/common/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export const noop = Function.prototype; // empty function

// open the link in a new window
export const newWindowOnClick = url => (event) => {
event.preventDefault();
window.open(url, '_blank');
};

export default {
bindMethods(context, methods) {
methods.forEach((method) => {
Expand Down
Loading

0 comments on commit 7b95d49

Please sign in to comment.