Added payments schema and connected to stripe BOD-146 BOD-147

This commit is contained in:
Patrick Fic
2020-06-05 08:20:04 -07:00
parent 90152fc613
commit 52849e1af7
37 changed files with 822 additions and 9 deletions

View File

@@ -26,6 +26,8 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(setModalContext({ context: context, modal: "invoiceEnter" })),
setTimeTicketContext: (context) =>
dispatch(setModalContext({ context: context, modal: "timeTicket" })),
setPaymentContext: (context) =>
dispatch(setModalContext({ context: context, modal: "payment" })),
});
function Header({
@@ -37,6 +39,7 @@ function Header({
signOutStart,
setInvoiceEnterContext,
setTimeTicketContext,
setPaymentContext,
}) {
const { t } = useTranslation();
//TODO Add
@@ -199,6 +202,18 @@ function Header({
</span>
}
>
<Menu.Item
key="enterpayments"
onClick={() => {
setPaymentContext({
actions: {},
context: {},
});
}}
>
{t("menus.header.enterpayment")}
</Menu.Item>
<Menu.Item
key="enterinvoices"
onClick={() => {