Browse Source

♻️ refactor(payment): optimize component import structure

- remove Button import from @tarojs/components
- add Button import from custom UI component library @/components/ui/button
yourname 1 month ago
parent
commit
0e63471108
1 changed files with 2 additions and 1 deletions
  1. 2 1
      mini/src/pages/payment/index.tsx

+ 2 - 1
mini/src/pages/payment/index.tsx

@@ -5,8 +5,9 @@
 
 import Taro from '@tarojs/taro'
 import { useState } from 'react'
-import { View, Text, Button } from '@tarojs/components'
+import { View, Text } from '@tarojs/components'
 import { useQuery } from '@tanstack/react-query'
+import { Button } from '@/components/ui/button'
 import {
   requestWechatPayment,
   PaymentStatus,