Skip to content

Commit

Permalink
style: rearrange focalpeople list columns
Browse files Browse the repository at this point in the history
  • Loading branch information
navish committed Jun 17, 2019
1 parent 79198e5 commit 1a504ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
15 changes: 7 additions & 8 deletions src/Stakeholders/components/FocalPeople/List/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ import FocalPersonsListItem from '../ListItem';
const nameSpan = { xxl: 3, xl: 3, lg: 3, md: 5, sm: 10, xs: 10 };
const phoneSpan = { xxl: 2, xl: 2, lg: 3, md: 4, sm: 9, xs: 9 };
const emailSpan = { xxl: 3, xl: 4, lg: 5, md: 7, sm: 0, xs: 0 };
const agencySpan = { xxl: 5, xl: 4, lg: 3, md: 0, sm: 0, xs: 0 };
const roleSpan = { xxl: 5, xl: 4, lg: 4, md: 0, sm: 0, xs: 0 };
const roleSpan = { xxl: 10, xl: 8, lg: 7, md: 0, sm: 0, xs: 0 };
const areaSpan = { xxl: 5, xl: 5, lg: 4, md: 5, sm: 0, xs: 0 };

const headerLayout = [
{ ...nameSpan, header: 'Name' },
{ ...phoneSpan, header: 'Mobile Number' },
{ ...emailSpan, header: 'Email Address' },
{ ...agencySpan, header: 'Agency' },
{ ...roleSpan, header: 'Role' },
{ ...roleSpan, header: 'Title & Organization' },
{ ...phoneSpan, header: 'Phone Number' },
{ ...emailSpan, header: 'Email' },
{ ...areaSpan, header: 'Area' },
];
const { getFocalPeopleExportUrl } = httpActions;
Expand Down Expand Up @@ -69,7 +68,7 @@ class FocalPersonsList extends Component {
* @name handleOnSelectFocalPerson
* @description Handle select a single focalPerson action
*
* @param {Object} focalPerson selected focalPerson object
* @param {object} focalPerson selected focalPerson object
*
* @version 0.1.0
* @since 0.1.0
Expand Down Expand Up @@ -157,7 +156,7 @@ class FocalPersonsList extends Component {
* @name handleOnDeselectFocalPerson
* @description Handle deselect a single focalPerson action
*
* @param {Object} focalPerson focalPerson to be removed from selected focalPeople
* @param {object} focalPerson focalPerson to be removed from selected focalPeople
* @returns {undefined} undefined
*
* @version 0.1.0
Expand Down
16 changes: 8 additions & 8 deletions src/Stakeholders/components/FocalPeople/ListItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class FocalPeopleListItem extends Component {
* @name handleToggleSelect
* @description Handle Toggling List Item checkbox
*
* @param {Object} event - Event object
* @param {object} event - Event object
*
* @version 0.1.0
* @since 0.1.0
Expand Down Expand Up @@ -111,9 +111,10 @@ class FocalPeopleListItem extends Component {
const nameSpan = { xxl: 3, xl: 3, lg: 3, md: 5, sm: 10, xs: 10 };
const phoneSpan = { xxl: 2, xl: 2, lg: 3, md: 4, sm: 9, xs: 9 };
const emailSpan = { xxl: 3, xl: 4, lg: 5, md: 7, sm: 0, xs: 0 };
const agencySpan = { xxl: 4, xl: 3, lg: 3, md: 0, sm: 0, xs: 0 };
const roleSpan = { xxl: 5, xl: 5, lg: 4, md: 0, sm: 0, xs: 0 };
const roleSpan = { xxl: 9, xl: 8, lg: 7, md: 0, sm: 0, xs: 0 };
const areaSpan = { xxl: 5, xl: 5, lg: 4, md: 5, sm: 0, xs: 0 };
const isHoveredSpan = { xxl: 1, xl: 1, lg: 1, md: 1, sm: 2, xs: 2 };

const {
abbreviation,
mobile,
Expand Down Expand Up @@ -162,14 +163,13 @@ class FocalPeopleListItem extends Component {
<Row>
<Col {...sideSpan}>{sideComponent}</Col>
<Col {...nameSpan}>{name}</Col>
<Col {...roleSpan} title={agency}>
{role}, {agencyAbbreviation}
</Col>
<Col {...phoneSpan}>{mobile}</Col>
<Col {...emailSpan}>{email}</Col>
<Col {...agencySpan} title={agency}>
{agencyAbbreviation}
</Col>
<Col {...roleSpan}>{role}</Col>
<Col {...areaSpan}>{location}</Col>
<Col xxl={1} xl={1} lg={1} md={1} sm={2} xs={2}>
<Col {...isHoveredSpan}>
{isHovered && (
<ListItemActions
edit={{
Expand Down

0 comments on commit 1a504ea

Please sign in to comment.