Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #717 from Northeastern-Electric-Racing/#714-cr-dat…
Browse files Browse the repository at this point in the history
…e-column

#714 - add cr date column
  • Loading branch information
jamescd18 authored Jun 15, 2022
2 parents 0e7c34d + 3561d5b commit db23a2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const ChangeRequestsTable: React.FC = () => {
return changeRequests.map((cr: ChangeRequest) => {
return {
id: cr.crId,
dateSubmitted: datePipe(cr.dateSubmitted),
submitterName: fullNamePipe(cr.submitter),
wbsNum: wbsPipe(cr.wbsNum),
type: cr.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import './change-requests-table.module.css';

export interface DisplayChangeRequest {
id: number;
dateSubmitted: string;
submitterName: string;
wbsNum: string;
type: string;
Expand Down Expand Up @@ -43,6 +44,13 @@ const ChangeRequestsTable: React.FC<ChangeRequestsTableProps> = ({
align: 'center',
sort: true
},
{
headerAlign: 'center',
dataField: 'dateSubmitted',
text: 'Date Submitted',
align: 'left',
sort: true
},
{
headerAlign: 'center',
dataField: 'submitterName',
Expand Down

0 comments on commit db23a2a

Please sign in to comment.