Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint no-undef:0, no-unused-expressions:0, array-callback-return:0 */
import React, { Component } from 'react';
import { Nav } from '@alifd/next';
import { withRouter, Link } from 'react-router-dom';
import { asideMenuConfig } from '../../../../menuConfig';
import './Aside.scss';
const NavItem = Nav.Item;
@withRouter
export default class BasicLayout extends Component {
render() {
const { location } = this.props;
const { pathname } = location;
return (
<nav style="{{" direction="ver">
{Array.isArray(asideMenuConfig) &&
asideMenuConfig.length > 0 &&</nav>
/* eslint no-undef:0, no-unused-expressions:0, array-callback-return:0 */
import React, { Component } from 'react';
import { Nav } from '@alifd/next';
import { withRouter, Link } from 'react-router-dom';
import { asideMenuConfig } from '../../../../menuConfig';
import './index.scss';
const NavItem = Nav.Item;
@withRouter
export default class BasicLayout extends Component {
render() {
const { location } = this.props;
const { pathname } = location;
return (
<div>
<div>LOGO</div>
<nav>
{Array.isArray(asideMenuConfig) &&
asideMenuConfig.length > 0 &&
asideMenuConfig.map((nav) => {
return (
</nav></div>
import React, { Component } from 'react';
import cx from 'classnames';
import FoundationSymbol from '@icedesign/foundation-symbol';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router';
import { Nav } from '@alifd/next';
import { FormattedMessage } from 'react-intl';
import Logo from '../Logo';
import { asideMenuConfig } from '../../../../menuConfig';
import Authorized from '../../../../utils/Authorized';
import './index.scss';
const SubNav = Nav.SubNav;
const NavItem = Nav.Item;
@withRouter
export default class Aside extends Component {
static propTypes = {};
static defaultProps = {};
constructor(props) {
super(props);
const openKeys = this.getDefaultOpenKeys();
this.state = {
collapse: false,
openDrawer: false,
openKeys,
};
import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { Balloon, Icon, Nav } from '@alifd/next';
import IceImg from '@icedesign/img';
import { headerMenuConfig } from '../../../../menuConfig';
import Logo from '../Logo';
import './Header.scss';
const NavItem = Nav.Item;
@withRouter
export default class Header extends Component {
render() {
const { location = {} } = this.props;
const { pathname } = location;
return (
<div>
<div>
<div>
</div></div></div>