Skip to content

Commit

Permalink
Issue contact (#86)
Browse files Browse the repository at this point in the history
* terminatedTable

* add contactOutcome & update snapshop

* bump version

* rollback version

* fix pr review

* delete import

* fix size column

* test: update snapshots

* bump version

---------

Co-authored-by: Simon Demazière <[email protected]>
  • Loading branch information
MickaelMenet and SimonDmz authored Dec 4, 2023
1 parent bd48c5d commit 5420d06
Show file tree
Hide file tree
Showing 7 changed files with 858 additions and 199 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sonor",
"version": "0.5.19",
"version": "0.5.20",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
Expand Down
22 changes: 12 additions & 10 deletions src/components/Terminated/Terminated.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@

/* Column sizes */

#TerminatedTableContainer .ColCampaign{
width: 28%;
#TerminatedTableContainer .ColCampaign {
width: 21%;
}
#TerminatedTableContainer .ColId{
#TerminatedTableContainer .ColId {
width: 16%;
}
#TerminatedTableContainer .ColInterviewer{
width: 22%;
#TerminatedTableContainer .ColInterviewer {
width: 21%;
}
#TerminatedTableContainer .ColFinalizationDate{
#TerminatedTableContainer .ColFinalizationDate {
width: 14%;
}
#TerminatedTableContainer .ColReading{
#TerminatedTableContainer .ColContactOutcome {
width: 10%;
}
#TerminatedTableContainer .ColAction{
#TerminatedTableContainer .ColReading {
width: 8%;
}
#TerminatedTableContainer .ColAction {
width: 10%;
}
}
13 changes: 9 additions & 4 deletions src/components/Terminated/TerminatedTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ class TerminatedTable extends React.Component {
{data.id}
</td>
<td className="ColInterviewer">{`${data.interviewer.interviewerLastName} ${data.interviewer.interviewerFirstName}`}</td>
<td className="ColFinalizationDate">{`${Utils.convertToDateString(
data.finalizationDate
)}`}</td>
<td className="ColFinalizationDate">{`${Utils.convertToDateString(data.finalizationDate)}`}</td>
<td className="ColContactOutcome">{D[data.contactOutcome]}</td>
<td className="ColReading">{data.reading ? D.yes : D.no}</td>
<td className="ColAction">
<OverlayTrigger
Expand Down Expand Up @@ -253,7 +252,13 @@ class TerminatedTable extends React.Component {
</th>
<th
rowSpan="2"
onClick={handleSortFunct("reading")}
className="Clickable ColContactOutcome"
>
{D.contact}
</th>
<th
rowSpan="2"
onClick={handleSortFunct('reading')}
className="Clickable ColReading"
>
<SortIcon val="reading" sort={sort} />
Expand Down
Loading

0 comments on commit 5420d06

Please sign in to comment.