aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-03 17:52:48 +0800
committerFabio Berger <me@fabioberger.com>2018-10-03 17:52:48 +0800
commit0c80fea8216ede2b77c448e3e1b4d013c1c76669 (patch)
tree3349b91561556e2b8206b6ce8303a7854679fabb /packages/website/ts
parent4fb7b3515389439e1ffafebf520d0cfd84efb5d1 (diff)
downloaddexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.tar
dexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.tar.gz
dexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.tar.bz2
dexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.tar.lz
dexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.tar.xz
dexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.tar.zst
dexon-sol-tools-0c80fea8216ede2b77c448e3e1b4d013c1c76669.zip
Make tutorial buttons also open in a new tab
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/pages/documentation/home.tsx21
1 files changed, 18 insertions, 3 deletions
diff --git a/packages/website/ts/pages/documentation/home.tsx b/packages/website/ts/pages/documentation/home.tsx
index 42ed1db8c..86999b8fe 100644
--- a/packages/website/ts/pages/documentation/home.tsx
+++ b/packages/website/ts/pages/documentation/home.tsx
@@ -27,6 +27,7 @@ const TUTORIALS: TutorialInfo[] = [
link: {
title: Key.DevelopOnEthereum,
to: `${WebsitePaths.Wiki}#Ethereum-Development`,
+ shouldOpenInNewTab: true,
},
},
{
@@ -35,6 +36,7 @@ const TUTORIALS: TutorialInfo[] = [
link: {
title: Key.BuildARelayer,
to: `${WebsitePaths.Wiki}#Build-A-Relayer`,
+ shouldOpenInNewTab: true,
},
},
{
@@ -43,6 +45,7 @@ const TUTORIALS: TutorialInfo[] = [
link: {
title: Key.OrderBasics,
to: `${WebsitePaths.Wiki}#Create,-Validate,-Fill-Order`,
+ shouldOpenInNewTab: true,
},
},
{
@@ -51,6 +54,7 @@ const TUTORIALS: TutorialInfo[] = [
link: {
title: Key.UseSharedLiquidity,
to: `${WebsitePaths.Wiki}#Find,-Submit,-Fill-Order-From-Relayer`,
+ shouldOpenInNewTab: true,
},
},
];
@@ -68,6 +72,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '0x.js',
to: WebsitePaths.ZeroExJs,
+ shouldOpenInNewTab: true,
},
},
{
@@ -76,8 +81,8 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '0x starter project',
to: 'https://github.com/0xProject/0x-starter-project',
- type: LinkType.External,
shouldOpenInNewTab: true,
+ type: LinkType.External,
},
},
{
@@ -86,6 +91,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/connect',
to: WebsitePaths.Connect,
+ shouldOpenInNewTab: true,
},
},
{
@@ -94,6 +100,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/contract-wrappers',
to: WebsitePaths.ContractWrappers,
+ shouldOpenInNewTab: true,
},
},
{
@@ -102,6 +109,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/json-schemas',
to: WebsitePaths.JSONSchemas,
+ shouldOpenInNewTab: true,
},
},
{
@@ -110,6 +118,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/order-utils',
to: WebsitePaths.OrderUtils,
+ shouldOpenInNewTab: true,
},
},
{
@@ -118,6 +127,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/order-watcher',
to: WebsitePaths.OrderWatcher,
+ shouldOpenInNewTab: true,
},
},
{
@@ -126,8 +136,8 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/sra-spec',
to: 'https://github.com/0xProject/0x-monorepo/tree/development/packages/sra-spec',
- type: LinkType.External,
shouldOpenInNewTab: true,
+ type: LinkType.External,
},
},
],
@@ -138,8 +148,8 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: 'abi-gen',
to: 'https://github.com/0xProject/0x-monorepo/tree/development/packages/abi-gen',
- type: LinkType.External,
shouldOpenInNewTab: true,
+ type: LinkType.External,
},
},
{
@@ -148,6 +158,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: 'ethereum-types',
to: WebsitePaths.EthereumTypes,
+ shouldOpenInNewTab: true,
},
},
{
@@ -156,6 +167,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/sol-compiler',
to: WebsitePaths.SolCompiler,
+ shouldOpenInNewTab: true,
},
},
{
@@ -164,6 +176,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/sol-cov',
to: WebsitePaths.SolCov,
+ shouldOpenInNewTab: true,
},
},
{
@@ -172,6 +185,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/subproviders',
to: WebsitePaths.Subproviders,
+ shouldOpenInNewTab: true,
},
},
{
@@ -180,6 +194,7 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = {
link: {
title: '@0xproject/web3-wrapper',
to: WebsitePaths.Web3Wrapper,
+ shouldOpenInNewTab: true,
},
},
],