Skip to content

Commit

Permalink
feat: add builder (#31)
Browse files Browse the repository at this point in the history
* feat: add builder

* chore: fix tests
  • Loading branch information
cazala authored Mar 14, 2019
1 parent ab574dd commit cc84c7b
Show file tree
Hide file tree
Showing 11 changed files with 673 additions and 553 deletions.
1,102 changes: 551 additions & 551 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type NavbarI18N = {
docs: React.ReactNode
agora: React.ReactNode
blog: React.ReactNode
builder: React.ReactNode
}
account: {
signIn: React.ReactNode
Expand All @@ -18,7 +19,7 @@ export type NavbarI18N = {
export type NavbarProps = {
mana?: number
address?: string
activePage?: 'marketplace' | 'docs' | 'agora' | 'blog'
activePage?: 'marketplace' | 'docs' | 'agora' | 'blog' | 'builder'
menuItems?: React.ReactNode
i18n?: NavbarI18N
isConnected?: boolean
Expand All @@ -43,7 +44,8 @@ export class Navbar extends React.PureComponent<NavbarProps, NavbarState> {
marketplace: 'Marketplace',
docs: 'Docs',
agora: 'Agora',
blog: 'Blog'
blog: 'Blog',
builder: 'Builder'
},
account: {
signIn: 'Sign In',
Expand Down Expand Up @@ -85,6 +87,12 @@ export class Navbar extends React.PureComponent<NavbarProps, NavbarState> {
>
{i18n.menu.marketplace}
</Menu.Item>
<Menu.Item
active={activePage === 'builder'}
href="https://builder.decentraland.org"
>
{i18n.menu.builder}
</Menu.Item>
<Menu.Item
active={activePage === 'docs'}
href="https://docs.decentraland.org"
Expand Down
112 changes: 112 additions & 0 deletions test/coverage/__snapshots__/coverage.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3149,6 +3149,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Agora 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3186,6 +3193,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Agora 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3273,6 +3287,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Connected 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3330,6 +3351,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Connected 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3417,6 +3445,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Connecting 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3465,6 +3500,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Connecting 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3552,6 +3594,13 @@ exports[`Decentraland UI - Coverage Tests Navbar On click account 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3609,6 +3658,13 @@ exports[`Decentraland UI - Coverage Tests Navbar On click account 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3696,6 +3752,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Sign In 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3744,6 +3807,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Sign In 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3831,6 +3901,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Sign In Page 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -3879,6 +3956,13 @@ exports[`Decentraland UI - Coverage Tests Navbar Sign In Page 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -4015,6 +4099,13 @@ exports[`Decentraland UI - Coverage Tests Navbar With hero 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -4086,6 +4177,13 @@ exports[`Decentraland UI - Coverage Tests Navbar With hero 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -4173,6 +4271,13 @@ exports[`Decentraland UI - Coverage Tests Navbar With menu items 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down Expand Up @@ -4244,6 +4349,13 @@ exports[`Decentraland UI - Coverage Tests Navbar With menu items 1`] = `
>
Marketplace
</a>
<a
className="item"
href="https://builder.decentraland.org"
onClick={[Function]}
>
Builder
</a>
<a
className="item"
href="https://docs.decentraland.org"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cc84c7b

Please sign in to comment.