feat(mp): add Mercado Pago reauthorization notice and status card components
- Implemented MpReauthNotice component to notify users when reauthorization is needed. - Created MpStatusCard component to display the current status of the Mercado Pago account. - Added utility functions and constants for handling Mercado Pago status and messages. - Introduced hooks for managing the connection and disconnection of Mercado Pago accounts. - Developed a disconnect confirmation modal for user actions. - Added tests for the new functionality and utility functions. - Defined schemas for Mercado Pago account status and callback reasons in shared package.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { Link } from '@tanstack/react-router'
|
||||
import { Fingerprint } from 'lucide-react'
|
||||
import { signOut } from '../../lib/auth-client'
|
||||
import { Button } from '../../components/ui'
|
||||
import { signOut } from '../../lib/auth-client'
|
||||
import { MpStatusCard } from '../mp'
|
||||
import { AppearanceCard } from './AppearanceCard'
|
||||
|
||||
export function SettingsView() {
|
||||
@@ -31,6 +32,8 @@ export function SettingsView() {
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<MpStatusCard />
|
||||
|
||||
<AppearanceCard />
|
||||
|
||||
<Button variant="outline" onClick={handleSignOut}>
|
||||
|
||||
Reference in New Issue
Block a user