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
2 changes: 1 addition & 1 deletion clients/apps/app/expo-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// <reference types="expo/types" />

// NOTE: This file should not be edited and should be in your git ignore
// NOTE: This file should not be edited and should be in your git ignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import React from 'react'
import { useForm } from 'react-hook-form'
import { CurrencySelector } from '../CurrencySelector'
import { toast } from '../Toast/use-toast'
import { SettingsGroup, SettingsGroupItem } from './SettingsGroup'

interface OrganizationCurrencySettingsProps {
Expand Down Expand Up @@ -51,6 +52,12 @@ const OrganizationCurrencySettings: React.FC<
} else {
setError('root', { message: error.detail })
}

toast({
title: 'Currency Settings Update Failed',
description: `Error updating currency settings: ${error.detail}`,
})

return
}

Expand All @@ -59,6 +66,11 @@ const OrganizationCurrencySettings: React.FC<
default_presentment_currency:
data.default_presentment_currency as schemas['PresentmentCurrency'],
})

toast({
title: 'Currency Settings Updated',
description: 'Your currency settings have been saved.',
})
}

useAutoSave({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ const OrganizationCustomerEmailSettings: React.FC<
}

reset(data.customer_email_settings)

toast({
title: 'Customer Email Settings Updated',
description: 'Your customer email settings have been saved.',
})
}

useAutoSave({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ const OrganizationCustomerPortalSettings: React.FC<
}

reset(data.customer_portal_settings)

toast({
title: 'Customer Portal Settings Updated',
description: 'Your customer portal settings have been saved.',
})
}

useAutoSave({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ const OrganizationSubscriptionSettings: React.FC<
}

reset(data.subscription_settings)

toast({
title: 'Subscription Settings Updated',
description: 'Your subscription settings have been saved.',
})
}

useAutoSave({
Expand Down
Loading