From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/app/switch-app-modal/index.tsx |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/app/components/app/switch-app-modal/index.tsx b/app/components/app/switch-app-modal/index.tsx
index f1654eb..5b45095 100644
--- a/app/components/app/switch-app-modal/index.tsx
+++ b/app/components/app/switch-app-modal/index.tsx
@@ -6,6 +6,7 @@
 import { useTranslation } from 'react-i18next'
 import { RiCloseLine } from '@remixicon/react'
 import AppIconPicker from '../../base/app-icon-picker'
+import s from './style.module.css'
 import cn from '@/utils/classnames'
 import Checkbox from '@/app/components/base/checkbox'
 import Button from '@/app/components/base/button'
@@ -23,7 +24,6 @@
 import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'
 import AppIcon from '@/app/components/base/app-icon'
 import { useStore as useAppStore } from '@/app/components/app/store'
-import { noop } from 'lodash-es'
 
 type SwitchAppModalProps = {
   show: boolean
@@ -82,7 +82,7 @@
         removeOriginal ? replace : push,
       )
     }
-    catch {
+    catch (e) {
       notify({ type: 'error', message: t('app.newApp.appCreateFailed') })
     }
   }
@@ -95,24 +95,24 @@
   return (
     <>
       <Modal
-        className={cn('w-[600px] max-w-[600px] p-8')}
+        className={cn('p-8 max-w-[600px] w-[600px]', s.bg)}
         isShow={show}
-        onClose={noop}
+        onClose={() => { }}
       >
-        <div className='absolute right-4 top-4 cursor-pointer p-2' onClick={onClose}>
-          <RiCloseLine className='h-4 w-4 text-text-tertiary' />
+        <div className='absolute right-4 top-4 p-2 cursor-pointer' onClick={onClose}>
+          <RiCloseLine className='w-4 h-4 text-gray-500' />
         </div>
-        <div className='h-12 w-12 rounded-xl border-[0.5px] border-divider-regular bg-background-default-burn p-3 shadow-xl'>
-          <AlertTriangle className='h-6 w-6 text-[rgb(247,144,9)]' />
+        <div className='w-12 h-12 p-3 bg-white rounded-xl border-[0.5px] border-gray-100 shadow-xl'>
+          <AlertTriangle className='w-6 h-6 text-[rgb(247,144,9)]' />
         </div>
-        <div className='relative mt-3 text-xl font-semibold leading-[30px] text-text-primary'>{t('app.switch')}</div>
-        <div className='my-1 text-sm leading-5 text-text-tertiary'>
+        <div className='relative mt-3 text-xl font-semibold leading-[30px] text-gray-900'>{t('app.switch')}</div>
+        <div className='my-1 text-gray-500 text-sm leading-5'>
           <span>{t('app.switchTipStart')}</span>
-          <span className='font-medium text-text-secondary'>{t('app.switchTip')}</span>
+          <span className='text-gray-700 font-medium'>{t('app.switchTip')}</span>
           <span>{t('app.switchTipEnd')}</span>
         </div>
         <div className='pb-4'>
-          <div className='py-2 text-sm font-medium leading-[20px] text-text-primary'>{t('app.switchLabel')}</div>
+          <div className='py-2 text-sm font-medium leading-[20px] text-gray-900'>{t('app.switchLabel')}</div>
           <div className='flex items-center justify-between space-x-2'>
             <AppIcon
               size='large'
@@ -127,7 +127,7 @@
               value={name}
               onChange={e => setName(e.target.value)}
               placeholder={t('app.newApp.appNamePlaceholder') || ''}
-              className='h-10 grow'
+              className='grow h-10'
             />
           </div>
           {showAppIconPicker && <AppIconPicker
@@ -144,10 +144,10 @@
           />}
         </div>
         {isAppsFull && <AppsFull loc='app-switch' />}
-        <div className='flex items-center justify-between pt-6'>
+        <div className='pt-6 flex justify-between items-center'>
           <div className='flex items-center'>
             <Checkbox className='shrink-0' checked={removeOriginal} onCheck={() => setRemoveOriginal(!removeOriginal)} />
-            <div className="ml-2 cursor-pointer text-sm leading-5 text-text-secondary" onClick={() => setRemoveOriginal(!removeOriginal)}>{t('app.removeOriginal')}</div>
+            <div className="ml-2 text-sm leading-5 text-gray-700 cursor-pointer" onClick={() => setRemoveOriginal(!removeOriginal)}>{t('app.removeOriginal')}</div>
           </div>
           <div className='flex items-center'>
             <Button className='mr-2' onClick={onClose}>{t('app.newApp.Cancel')}</Button>

--
Gitblit v1.8.0