@sanity/default-layout
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -39,4 +39,2 @@ 'use strict'; | ||
// import config from 'config:sanity' | ||
var LoginStatus = function (_React$Component) { | ||
@@ -82,3 +80,3 @@ _inherits(LoginStatus, _React$Component); | ||
}).subscribe(function (user) { | ||
_this2.setState({ user: user }); | ||
return _this2.setState({ user: user }); | ||
}); | ||
@@ -102,2 +100,3 @@ } | ||
} | ||
return _react2.default.createElement( | ||
@@ -104,0 +103,0 @@ 'div', |
@@ -58,4 +58,4 @@ 'use strict'; | ||
_react2.default.createElement( | ||
_router.Link, | ||
{ href: '/' + tool.name, className: _ToolSwitcher2.default.toolLink }, | ||
_router.StateLink, | ||
{ className: _ToolSwitcher2.default.toolLink, state: { tool: tool.name } }, | ||
_react2.default.createElement( | ||
@@ -62,0 +62,0 @@ 'div', |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _stateRouter = require('@sanity/state-router'); | ||
var _router = require('part:@sanity/base/router'); | ||
@@ -16,7 +16,7 @@ var _tool = require('all:part:@sanity/base/tool'); | ||
exports.default = (0, _stateRouter.createRoute)('/some-site/:tool/*', function (params) { | ||
exports.default = (0, _router.createRoute)('/some-site/:tool/*', function (params) { | ||
var tool = _tool2.default.find(function (tool) { | ||
return tool.name === params.tool; | ||
}); | ||
return (0, _stateRouter.createScope)(tool.name, tool.router); | ||
return (0, _router.createScope)(tool.name, tool.router); | ||
}); |
{ | ||
"name": "@sanity/default-layout", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "The default layout components for Sanity", | ||
@@ -10,6 +10,5 @@ "main": "lib/default-layout.js", | ||
"coverage": "nyc --report=lcov --report=text _mocha -- test/**/*.test.js", | ||
"test": "mocha test/**/*.test.js", | ||
"test": "eslint .", | ||
"clean": "rimraf lib .nyc_output coverage", | ||
"prepublish": "in-publish && npm run compile && sanity-check || not-in-publish", | ||
"posttest": "eslint ." | ||
"prepublish": "in-publish && npm run compile && sanity-check || not-in-publish" | ||
}, | ||
@@ -33,3 +32,3 @@ "repository": { | ||
"babel-cli": "^6.14.0", | ||
"babel-eslint": "^5.0.0", | ||
"babel-eslint": "^7.1.0", | ||
"babel-plugin-syntax-class-properties": "^6.8.0", | ||
@@ -39,10 +38,5 @@ "babel-plugin-transform-class-properties": "^6.9.1", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-register": "^6.14.0", | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^5.2.0", | ||
"eslint": "^3.5.0", | ||
"eslint": "^3.9.1", | ||
"eslint-config-sanity": "^1.1.3", | ||
"eslint-plugin-react": "^6.3.0", | ||
"mocha": "^2.4.5", | ||
"nyc": "^8.3.0", | ||
"eslint-plugin-react": "^6.6.0", | ||
"react": "^15.3.2", | ||
@@ -49,0 +43,0 @@ "rimraf": "^2.5.2" |
@@ -16,3 +16,3 @@ { | ||
"name": "part:@sanity/default-layout/root", | ||
"path": "components/DefaultLayoutRouter" | ||
"path": "components/DefaultLayoutContainer" | ||
}, | ||
@@ -19,0 +19,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12
27
1048
130184