Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create top level header component #1018

Open
wants to merge 2 commits into
base: admin-interface
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/pages/Admin/Admin.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.topLevelHeader {
display: flex;
justify-content: space-between;
height: 40px;
width: 700px;
margin: auto;
border-style: inset;
border-color: gray;
border-width: 5px;
padding: 5px;
background: lightgray;
font-weight: 600;
}
2 changes: 2 additions & 0 deletions app/pages/Admin/Categories/Categories.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable class-methods-use-this */
import React from 'react';
import fake_data from './fake_data';
import TopLevelHeader from './TopLevelHeader';

class Categories extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -49,6 +50,7 @@ class Categories extends React.Component {
return (
<div>
<div>initialize the Categories page</div>
<TopLevelHeader />
</div>
);
}
Expand Down
14 changes: 14 additions & 0 deletions app/pages/Admin/Categories/TopLevelHeader.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

import styles from '.././Admin.module.scss';

const TopLevelHeader = (props) => {
return (
<div className={styles.topLevelHeader}>
<span>Top Level Categories</span>
<span>+ Add Category</span>
</div>
)
}

export default TopLevelHeader;