forked from RedHatInsights/catalog-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RedHatInsights#84 from Hyperkid123/order-table-pf4
Use PF4 data list to show orders.
- Loading branch information
Showing
9 changed files
with
192 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,7 @@ ul.navigation-secondary { | |
} | ||
cursor: pointer; | ||
} | ||
|
||
.text-align-right { | ||
text-align: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { NavLink, withRouter } from 'react-router-dom'; | ||
import { | ||
Breadcrumb, | ||
BreadcrumbItem, | ||
Toolbar, | ||
ToolbarGroup, | ||
ToolbarSection, | ||
ToolbarItem, | ||
TextContent, | ||
Text, | ||
TextVariants | ||
} from '@patternfly/react-core'; | ||
import './orders.scss'; | ||
|
||
const OrdersToolbar = ({ match: { path }}) => ( | ||
<Toolbar className="pf-u-pt-xl pf-u-pr-xl pf-u-pl-xl order-toolbar-breadcrumbs" style={ { backgroundColor: '#FFFFFF' } }> | ||
<ToolbarSection aria-label="order-toolbar-breadcrumbs"> | ||
<ToolbarGroup> | ||
<ToolbarItem> | ||
<Breadcrumb> | ||
<BreadcrumbItem isActive={ path === '/portfolios' }> | ||
<NavLink exact to="/portfolios">All Portfolios</NavLink> | ||
</BreadcrumbItem> | ||
<BreadcrumbItem isActive={ path === '/orders' }> | ||
<NavLink exact to="/orders">Orders</NavLink> | ||
</BreadcrumbItem> | ||
</Breadcrumb> | ||
</ToolbarItem> | ||
</ToolbarGroup> | ||
</ToolbarSection> | ||
<ToolbarSection aria-label="order-toolbar-heading"> | ||
<ToolbarGroup> | ||
<ToolbarItem> | ||
<TextContent> | ||
<Text component={ TextVariants.h1 }>Orders</Text> | ||
</TextContent> | ||
</ToolbarItem> | ||
</ToolbarGroup> | ||
</ToolbarSection> | ||
</Toolbar> | ||
); | ||
|
||
OrdersToolbar.propTypes = { | ||
match: PropTypes.shape({ | ||
path: PropTypes.string.isRequired | ||
}).isRequired | ||
}; | ||
|
||
export default withRouter(OrdersToolbar); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
@import "../../App"; | ||
|
||
.order-tabs { | ||
background-color: #FFFFFF; | ||
padding: 32px 32px 0 32px; | ||
li { | ||
padding: initial | ||
} | ||
} | ||
|
||
.order-data-list { | ||
.order-cell { | ||
align-self: center | ||
} | ||
} | ||
|
||
.order-toolbar-breadcrumbs { | ||
.pf-c-breadcrumb__item { | ||
.active{ | ||
color: var(--pf-c-breadcrumb__item--Color); | ||
text-decoration: none; | ||
pointer-events: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters