Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 61 | Rev 138 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { store } from "../redux/store";
import NotificationAlert from "../shared/notification/NotificationAlert";
import Navbar from "./navbar/Navbar";
import Navbar2 from './navbar/Navbar2'

ReactDOM.render(
  <Provider store={store}>
    <Navbar navbarVars={navbarVars} />
    <NotificationAlert />
  </Provider>,
  document.getElementById("react_navbar")
);
{
  window.location.pathname === '/dashboard2' && (
    ReactDOM.render(
      <Provider store={store}>
        <Navbar2 navbarVars={navbarVars} />
        <NotificationAlert />
      </Provider>,
      document.getElementById("react_navbar_2")
    )
  )
}