Skip to content

Commit

Permalink
fix: Admin nav label (#866)
Browse files Browse the repository at this point in the history
Fix input component add default value
  • Loading branch information
sunnywx authored Mar 6, 2019
1 parent 060d424 commit ed05584
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/components/Base/Input/input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ export default class Input extends React.Component {
disabled: PropTypes.bool,
icon: PropTypes.string,
iconSize: PropTypes.number,
iconType: PropTypes.string
iconType: PropTypes.string,
value: PropTypes.string
};

static defaultProps = {
className: '',
icon: '',
iconType: 'light',
iconSize: 16,
disabled: false
disabled: false,
value: ''
};

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/SideNav/navMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getNavs = {
{
link: toRoute(routes.portal._admin.users, { portal: 'admin' }),
iconName: 'group',
title: 'Users'
title: 'Users and Permission'
},
{
link: toRoute(routes.portal._admin.cloudEnv, { portal: 'admin' }),
Expand Down
6 changes: 4 additions & 2 deletions test/components/Base/__snapshots__/Table.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ exports[`Base/Table basic render 1`] = `
class="pi-table-tbody"
>
<tr
class="pi-table-row pi-table-row-level-0"
class="pi-table-row pi-table-row-level-0"
data-row-key="1"
>
<td
class="selectionColumn"
Expand Down Expand Up @@ -100,7 +101,8 @@ exports[`Base/Table basic render 1`] = `
</td>
</tr>
<tr
class="pi-table-row pi-table-row-level-0"
class="pi-table-row pi-table-row-level-0"
data-row-key="2"
>
<td
class="selectionColumn"
Expand Down
1 change: 0 additions & 1 deletion test/pages/__snapshots__/Home.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Array [
/>
</a>
<a
aria-current="false"
class="login"
href="/login"
/>
Expand Down

0 comments on commit ed05584

Please sign in to comment.