diff --git a/samples/subapp2-store/src/04.footer/app-footer.tsx b/samples/subapp2-store/src/04.footer/app-footer.tsx deleted file mode 100644 index fc29ba879..000000000 --- a/samples/subapp2-store/src/04.footer/app-footer.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { React, ReactSubApp, AppContext, xarcV2 } from "@xarc/react"; -import PropTypes from "prop-types"; -import { connect, reduxFeature } from "@xarc/react-redux"; -import classNames from "classnames"; -import custom from "../components/bootstrap.css"; -const Footer = (props: { title: any; }) => { - return ( - - ); -}; - -Footer.propTypes = { - title: PropTypes.string -}; - -const Component = connect((state: any) => state, (dispatch: any) => ({ dispatch }))(Footer); - -export const subapp: ReactSubApp = { - Component: Footer -}; - diff --git a/samples/subapp2-store/src/05.extras/app-extras.tsx b/samples/subapp2-store/src/05.extras/app-extras.tsx deleted file mode 100644 index e7862665e..000000000 --- a/samples/subapp2-store/src/05.extras/app-extras.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import { React, ReactSubApp, xarcV2, AppContext } from "@xarc/react"; -import { connect, reduxFeature } from "@xarc/react-redux"; -import PropTypes from "prop-types"; -import classNames from "classnames" -import custom from "../components/bootstrap.css"; - -const Extras = props => { - const { message } = props - return ( -
Extras Extras Extras
-Products
abc subapp demo1: {message}
-props: {JSON.stringify(props)}
-- Electrode Docs -
-abc subapp demo2
- props: {JSON.stringify(props)} -- Electrode Docs -
-- Redux State Demo: - - -
-Extras Extras Extras
+Mission, Vision & Values
{props.value}
@@ -11,11 +10,6 @@ const Header = (props) => { ); }; - -export { Header as Component }; - export const subapp: ReactSubApp = { Component: Header }; - - diff --git a/samples/subapp2-store/src/home.tsx b/samples/subapp2-store/src/subapps/main-body.tsx similarity index 56% rename from samples/subapp2-store/src/home.tsx rename to samples/subapp2-store/src/subapps/main-body.tsx index 3b1772f0d..87b0f5e4d 100644 --- a/samples/subapp2-store/src/home.tsx +++ b/samples/subapp2-store/src/subapps/main-body.tsx @@ -1,82 +1,19 @@ import PropTypes from "prop-types"; -import { React, declareSubApp, createDynamicComponent, ReactSubApp, xarcV2, AppContext } from "@xarc/react"; +import { React, ReactSubApp, xarcV2 } from "@xarc/react"; import { connect, reduxFeature } from "@xarc/react-redux"; import { reactRouterFeature, Route, Switch } from "@xarc/react-router"; -import { Component as Demo2 } from "./demo2"; -import { message } from "./message"; -import electrodePng from "../static/electrode.png"; -import custom from "./styles/custom.module.css"; // eslint-disable-line no-unused-vars -import Navigation from "./components/navigation"; -import { Component as Products } from "./components/products" -export const demo1 = declareSubApp({ - name: "demo1", - getModule: () => import("./demo1") -}); - -export const demo1B = declareSubApp({ - name: "demo1b", - getModule: () => import("./demo1") -}); - -const Demo1 = createDynamicComponent(demo1, { ssr: true }); -const Demo1B = createDynamicComponent(demo1B, { ssr: true }); - -const incNumber = () => { - return { - type: "INC_NUMBER" - }; -}; - -const decNumber = () => { - return { - type: "DEC_NUMBER" - }; -}; - -const Home = props => { - // TODO: Problem with typescript only. Need this dummy var assign to reference custom - // import else something drops it. - const y = custom; // eslint-disable-line - const { dispatch } = props; - - return ( -- Redux State Demo: - - -
-message: {message}
- - -