nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -1,14 +1,10 @@
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as t from "babel-types";
import * as util from "./util";
let hasOwn = Object.prototype.hasOwnProperty;
@@ -17,6 +13,7 @@ let hasOwn = Object.prototype.hasOwnProperty;
// returns a VariableDeclaration containing just the names of the removed
// declarations.
exports.hoist = function(funPath) {
const t = util.getTypes();
t.assertFunction(funPath.node);
let vars = {};
@@ -88,9 +85,9 @@ exports.hoist = function(funPath) {
let assignment = t.expressionStatement(
t.assignmentExpression(
"=",
node.id,
t.clone(node.id),
t.functionExpression(
node.id,
path.scope.generateUidIdentifierBasedOnNode(node),
node.params,
node.body,
node.generator,
@@ -121,6 +118,11 @@ exports.hoist = function(funPath) {
FunctionExpression: function(path) {
// Don't descend into nested function expressions.
path.skip();
},
ArrowFunctionExpression: function(path) {
// Don't descend into nested function expressions.
path.skip();
}
});