Skip to content

Commit

Permalink
docs: updated documentation with link to releases and issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaim authored and Zaim committed Mar 27, 2019
1 parent 2f5330b commit 43c416f
Show file tree
Hide file tree
Showing 87 changed files with 150 additions and 287 deletions.
8 changes: 0 additions & 8 deletions develop/assets/releases.json

This file was deleted.

3 changes: 0 additions & 3 deletions develop/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import * as Loadable from "react-loadable";
import Routing from "./Routing";
import TitleBar from "./common/TitleBar";
import SideBar from "./common/SideBar";

import { Loader } from "../../src/Loader/Loader";

// Here we are asynchronously loading components based on their path
const About = Loadable({ loader: () => import("./common/About"), loading: () => <Loader toggle={true} /> });
const Release = Loadable({ loader: () => import("./common/Release"), loading: () => <Loader toggle={true} /> });

const ButtonPage = Loadable({ loader: () => import("./pages/ButtonPage"), loading: () => <Loader toggle={true} /> });
const TextBoxPage = Loadable({ loader: () => import("./pages/TextBoxPage"), loading: () => <Loader toggle={true} /> });
Expand Down Expand Up @@ -72,7 +70,6 @@ class App extends React.Component<any, AppState> {
<Switch>
<Routing path="/" exact={true} component={About} props={propsToSend} />
<Routing path={"/about"} component={About} props={propsToSend} />
<Routing path={"/release"} component={Release} props={propsToSend} />
<Routing path={"/button"} component={ButtonPage} props={propsToSend} />
<Routing path={"/textbox"} component={TextBoxPage} props={propsToSend} />
<Routing path={"/textboxgroup"} component={TextBoxGroupPage} props={propsToSend} />
Expand Down
56 changes: 0 additions & 56 deletions develop/components/common/Release.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion develop/components/common/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const SideBar: React.StatelessComponent<SideBarProps> = (props: SideBarProps): R
<div className="title">How it works?</div>
<div className="nav-holder">
<Link to="/about" className={(page === "/" || page === "/about") ? "active" : ""}><span>About</span></Link>
<Link to="/release" className={page === "/release" ? "active" : ""}><span>Release Notes</span></Link>
<a href="https://github.com/sebgroup/react-components/issues" target="_blank"><span>Issues</span></a>
<a href="https://github.com/sebgroup/react-components/releases" target="_blank"><span>Release notes</span></a>
</div>
</div>
<div className="category">
Expand Down
2 changes: 0 additions & 2 deletions develop/components/common/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { TextBoxGroup } from "../../../src/TextBoxGroup/TextBoxGroup";
import { Icon } from "../../../src/Icon/Icon";
const SEBLogo: string = require("../../assets/images/icons/seblogo.svg");
const reactLogo: string = require("../../assets/images/icons/ReactLogo.png");
const pjson = require("../../../package.json");
const sidebarData = require("../../assets/sidebar.json");

interface SideBarDataItem {
Expand Down Expand Up @@ -197,7 +196,6 @@ export default class TitleBar extends React.Component<TitleBarProps, TitleBarSta
/>
</div>
<div className="sidebar-title">@sebgroup/react-components</div>
{pjson && pjson.version && <div className="version">v{pjson.version}</div>}
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion develop/components/pages/IconPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class IconPage extends React.Component<any, any> {
<h2>Output</h2>
<p>Here are sample outputs</p>
<div className="result">
<Icon src={mySvg} />
<Icon src={mySvg} size={24}/>
</div>
</div>

Expand Down
6 changes: 3 additions & 3 deletions develop/styles/shared/route-template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
display: none !important;
}
}
p:last-child {
display: none !important;
}
// p:last-child {
// display: none !important;
// }
}
}
>.result {
Expand Down
12 changes: 6 additions & 6 deletions docs/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/0.bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit 43c416f

Please sign in to comment.