Added routing and basic board component.

This commit is contained in:
Patrick Fic
2019-12-09 21:33:58 -08:00
parent 7de41f77ae
commit 620d2419a3
20 changed files with 407 additions and 44 deletions

View File

@@ -0,0 +1,9 @@
import React from 'react'
export default function FooterComponent() {
return (
<div>
Copyright Snapt Software 2019. All rights reserved.
</div>
)
}

View File

@@ -13,6 +13,7 @@ export default ({ landingHeader, selectedNavItem, navItems }) => {
};
return (
<Menu
theme="dark"
className="header"
onClick={handleClick}
selectedKeys={selectedNavItem}

View File

@@ -1,11 +0,0 @@
import React from "react";
import HeaderContainer from "../header/header.container";
export default function ManageShop() {
return (
<div>
<HeaderContainer />
This is the manage shop component.
</div>
);
}

View File

@@ -1,7 +0,0 @@
import React from "react";
import ManageShop from "./manage-shop.component";
const ManageShopContainer = () => <ManageShop />;
export default ManageShopContainer;

View File

@@ -0,0 +1,59 @@
import React from "react";
import { Skeleton, Switch, Card, Icon, Avatar } from "antd";
const { Meta } = Card;
class WhiteBoardCard extends React.Component {
state = {
loading: true
};
onChange = checked => {
this.setState({ loading: !checked });
};
render() {
const { loading } = this.state;
const {
onClick,
className,
name,
cardStyle,
body,
dueOn,
cardColor,
subTitle,
tagStyle,
escalationText,
tags,
showDeleteButton,
onDelete
} = this.props;
return (
<div>
<Card
style={{ width: 300, marginTop: 16 }}
actions={[
<Icon type="setting" key="setting" />,
<Icon type="edit" key="edit" />,
<Icon type="ellipsis" key="ellipsis" />,
<Switch checked={!loading} onChange={this.onChange} />
]}
>
<Skeleton loading={loading} avatar active>
<Meta
avatar={
<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
}
title="Card title"
description="This is the description"
/>
</Skeleton>
</Card>
</div>
);
}
}
export default WhiteBoardCard;