Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/reference/Translations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,10 @@ Translation keys for the `Contractor.Payments.PaymentsList` i18n namespace.
| `dateRanges.last12Months` | `"Last 12 months"` |
| `dateRanges.last3Months` | `"Last 3 months"` |
| `dateRanges.last6Months` | `"Last 6 months"` |
| <a id="property-contractorpaymentspaymentslisthistoricalpaymentcta"></a> `historicalPaymentCta` | |
| `historicalPaymentCta.button` | `"Record a historical payment"` |
| `historicalPaymentCta.description` | `"Add a contractor payment that was made outside of Gusto to keep your records complete."` |
| `historicalPaymentCta.title` | `"Record a historical payment"` |
| <a id="property-contractorpaymentspaymentslistnopaymentsdescription"></a> `noPaymentsDescription` | `"No contractor payments have been created yet. Create your first payment to get started."` |
| <a id="property-contractorpaymentspaymentslistnopaymentsfound"></a> `noPaymentsFound` | `"No payments found"` |
| <a id="property-contractorpaymentspaymentslistpaymentdatecolumnlabel"></a> `paymentDateColumnLabel` | `"Payment date"` |
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/component-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Renders an icon-only `<button>`; requires `aria-label` since there is no visible
| `onKeyUp?` | `KeyboardEventHandler`\<`HTMLButtonElement`\> | | - |
| `tabIndex?` | `number` | | - |
| `title?` | `string` | | - |
| `type?` | `"submit"` \| `"reset"` \| `"button"` | `undefined` | - |
| `type?` | `"submit"` \| `"button"` \| `"reset"` | `undefined` | - |
| `variant?` | `"error"` \| `"primary"` \| `"secondary"` \| `"tertiary"` | `'primary'` | Visual style variant of the button |

***
Expand Down Expand Up @@ -340,7 +340,7 @@ Renders an HTML button (`<button>`) with primary, secondary, tertiary, and error
| `onKeyUp?` | `KeyboardEventHandler`\<`HTMLButtonElement`\> | | - |
| `tabIndex?` | `number` | | - |
| `title?` | `string` | | - |
| `type?` | `"submit"` \| `"reset"` \| `"button"` | `undefined` | - |
| `type?` | `"submit"` \| `"button"` \| `"reset"` | `undefined` | - |
| `variant?` | `"error"` \| `"primary"` \| `"secondary"` \| `"tertiary"` | `'primary'` | Visual style variant of the button |

***
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@
.nowrap {
white-space: nowrap;
}

.historicalPaymentCta {
width: 100%;
max-width: toRem(640);
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const PaymentsListPresentation = ({
onEvent,
paginationProps,
}: ContractorPaymentPaymentsListPresentationProps) => {
const { Button, Heading, Select, ButtonIcon, Alert } = useComponentContext()
const { Box, Button, Heading, Text, Select, ButtonIcon, Alert } = useComponentContext()
useI18n('Contractor.Payments.PaymentsList')
const { t } = useTranslation('Contractor.Payments.PaymentsList')
const currencyFormatter = useNumberFormatter('currency')
Expand Down Expand Up @@ -174,6 +174,22 @@ export const PaymentsListPresentation = ({
</Flex>

<DataView label={t('subtitle')} {...dataViewProps} />

<div className={styles.historicalPaymentCta}>
<Box
header={
<Flex flexDirection="column" gap={4}>
<Text weight="semibold">{t('historicalPaymentCta.title')}</Text>
<Text variant="supporting">{t('historicalPaymentCta.description')}</Text>
</Flex>
}
footer={
<Button variant="secondary" onClick={() => {}}>
{t('historicalPaymentCta.button')}
</Button>
}
/>
</div>
</Flex>
)
}
5 changes: 5 additions & 0 deletions src/i18n/en/Contractor.Payments.PaymentsList.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@
"last3Months": "Last 3 months",
"last6Months": "Last 6 months",
"last12Months": "Last 12 months"
},
"historicalPaymentCta": {
"title": "Record a historical payment",
"description": "Add a contractor payment that was made outside of Gusto to keep your records complete.",
"button": "Record a historical payment"
}
}
8 changes: 8 additions & 0 deletions src/i18n/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,14 @@ export namespace Translations {
/** @defaultValue `"Last 12 months"` */
last12Months: string
}
historicalPaymentCta: {
/** @defaultValue `"Record a historical payment"` */
title: string
/** @defaultValue `"Add a contractor payment that was made outside of Gusto to keep your records complete."` */
description: string
/** @defaultValue `"Record a historical payment"` */
button: string
}
}
/** Translation keys for the `Contractor.Profile` i18n namespace. */
export interface ContractorProfile {
Expand Down
Loading