aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-10 07:26:57 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-10 07:26:57 +0800
commit433fb3597dc19cb223a2b8d0e373502042241abb (patch)
treedc9cccf7b1cc0d1c3d2d30986961e288fba4341e /packages/instant/src/util
parent7460f2796a2a549eaed15051009e35229fb1280f (diff)
downloaddexon-sol-tools-433fb3597dc19cb223a2b8d0e373502042241abb.tar.gz
dexon-sol-tools-433fb3597dc19cb223a2b8d0e373502042241abb.tar.zst
dexon-sol-tools-433fb3597dc19cb223a2b8d0e373502042241abb.zip
feat: refactor button styles and add href to Text
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/util.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/instant/src/util/util.ts b/packages/instant/src/util/util.ts
index 232a86850..aeb68956b 100644
--- a/packages/instant/src/util/util.ts
+++ b/packages/instant/src/util/util.ts
@@ -2,4 +2,5 @@ import * as _ from 'lodash';
export const util = {
boundNoop: _.noop.bind(_),
+ createHrefOnClick: (href: string) => () => window.open(href, '_blank'),
};