Skip to content

Commit

Permalink
Merge pull request #18 from joeblas/8_updateClientPage_tyler
Browse files Browse the repository at this point in the history
working on invoices list page
  • Loading branch information
tylern-dev authored Nov 18, 2017
2 parents 0e01c69 + e7f65ad commit 65542ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions imports/api/Users/server/edit-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ const editProfile = ({ userId, profile }, promise) => {
};

export default options =>
new Promise((resolve, reject) =>
editProfile(options, { resolve, reject }));
new Promise((resolve, reject) =>
editProfile(options, { resolve, reject }));
11 changes: 5 additions & 6 deletions imports/ui/pages/Invoices/Invoices.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,19 @@ const Invoices = ({ loading, invoices, match, history }) => (!loading ? (
<th />
<th className="text-center">Status</th>
<th>Created</th>
<th>Client/Subject</th>
<th>Client</th>
<th>Subject</th>
<th className="text-center">Total Amount</th>
</tr>
</thead>
<tbody>
{invoices.map(({ _id, number, status, createdAt, client, subject, total }) => (
{invoices.map(({ _id, number, status, createdAt, recipient, subject, total }) => (
<tr key={_id} onClick={() => history.push(`${match.url}/${_id}`)}>
<td>#{number}</td>
<td className="text-center">{getInvoiceLabel(status)}</td>
<td>{monthDayYear(createdAt)}</td>
<td>
<strong>{client}</strong>
<p>{subject}</p>
</td>
<td><strong>{recipient}</strong></td>
<td><p>{subject}</p></td>
<td className="text-center">{formatAsCurrency(centsToDollars(total))}</td>
</tr>
))}
Expand Down
2 changes: 2 additions & 0 deletions imports/ui/pages/Recipients/Recipients.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const Recipients = ({ loading, recipients, match, history }) => (!loading ? (
<thead>
<tr>
<th>Name</th>
<th>Total Due</th>
<th>Total Paid</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 65542ca

Please sign in to comment.