Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Invoices setting screen #50565

Merged
44 changes: 0 additions & 44 deletions src/components/ConnectBankAccountButton.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3779,14 +3779,6 @@ const translations = {
notReadyDescription: 'Draft or pending expense reports cannot be exported to the accounting system. Please approve or pay these expenses before exporting them.',
},
invoices: {
invoiceClientsAndCustomers: 'Invoice clients and customers',
invoiceFirstSectionCopy: 'Send beautiful, professional invoices directly to your clients and customers right from the Expensify app.',
viewAllInvoices: 'View all invoices',
unlockOnlineInvoiceCollection: 'Unlock online invoice collection',
unlockNoVBACopy: 'Connect your bank account to accept online invoice payments by ACH or credit card.',
moneyBackInAFlash: 'Money back, in a flash!',
unlockVBACopy: "You're all set to accept payments by ACH or credit card!",
viewUnpaidInvoices: 'View unpaid invoices',
sendInvoice: 'Send invoice',
sendFrom: 'Send from',
invoicingDetails: 'Invoicing details',
Expand Down
8 changes: 0 additions & 8 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3822,14 +3822,6 @@ const translations = {
'Los borradores o informes de gastos pendientes no se pueden exportar al sistema contabilidad. Por favor, apruebe o pague estos gastos antes de exportarlos.',
},
invoices: {
invoiceClientsAndCustomers: 'Emite facturas a tus clientes',
invoiceFirstSectionCopy: 'Envía facturas detalladas y profesionales directamente a tus clientes desde la app de Expensify.',
viewAllInvoices: 'Ver facturas emitidas',
unlockOnlineInvoiceCollection: 'Desbloquea el cobro de facturas online',
unlockNoVBACopy: 'Conecta tu cuenta bancaria para recibir pagos de facturas online por transferencia o con tarjeta.',
moneyBackInAFlash: '¡Tu dinero de vuelta en un momento!',
unlockVBACopy: '¡Todo listo para recibir pagos por transferencia o con tarjeta!',
viewUnpaidInvoices: 'Ver facturas emitidas pendientes',
sendInvoice: 'Enviar factura',
sendFrom: 'Enviar desde',
invoicingDetails: 'Detalles de facturación',
Expand Down
58 changes: 0 additions & 58 deletions src/pages/workspace/invoices/WorkspaceInvoicesFirstSection.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions src/pages/workspace/invoices/WorkspaceInvoicesNoVBAView.tsx

This file was deleted.

9 changes: 4 additions & 5 deletions src/pages/workspace/invoices/WorkspaceInvoicesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSection
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
import WorkspaceInvoiceBalanceSection from './WorkspaceInvoiceBalanceSection';
import WorkspaceInvoicesNoVBAView from './WorkspaceInvoicesNoVBAView';
import WorkspaceInvoicesVBAView from './WorkspaceInvoicesVBAView';
import WorkspaceInvoiceVBASection from './WorkspaceInvoiceVBASection';
import WorkspaceInvoicingDetailsSection from './WorkspaceInvoicingDetailsSection';

type WorkspaceInvoicesPageProps = StackScreenProps<FullScreenNavigatorParamList, typeof SCREENS.WORKSPACE.INVOICES>;
function WorkspaceInvoicesPage({route}: WorkspaceInvoicesPageProps) {
const {translate} = useLocalize();
const styles = useThemeStyles();
const {shouldUseNarrowLayout} = useResponsiveLayout();

return (
<AccessOrNotFoundWrapper
accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN, CONST.POLICY.ACCESS_VARIANTS.PAID]}
Expand All @@ -33,12 +33,11 @@ function WorkspaceInvoicesPage({route}: WorkspaceInvoicesPageProps) {
shouldSkipVBBACall={false}
route={route}
>
{(hasVBA?: boolean, policyID?: string) => (
{(_hasVBA?: boolean, policyID?: string) => (
<View style={[styles.mt3, shouldUseNarrowLayout ? styles.workspaceSectionMobile : styles.workspaceSection]}>
{policyID && <WorkspaceInvoiceBalanceSection policyID={policyID} />}
{policyID && <WorkspaceInvoiceVBASection policyID={policyID} />}
{!hasVBA && policyID && <WorkspaceInvoicesNoVBAView policyID={policyID} />}
{hasVBA && policyID && <WorkspaceInvoicesVBAView policyID={policyID} />}
{policyID && <WorkspaceInvoicingDetailsSection policyID={policyID} />}
</View>
)}
</WorkspacePageWithSections>
Expand Down
52 changes: 0 additions & 52 deletions src/pages/workspace/invoices/WorkspaceInvoicesVBAView.tsx

This file was deleted.

Loading