|
@@ -150,7 +150,7 @@ export default function AccountPage() {
|
|
|
<div className='mb-8'>
|
|
|
<div className='mb-1 text-sm font-medium text-gray-900'>{t('common.account.password')}</div>
|
|
|
<div className='mb-2 text-xs text-gray-500'>{t('common.account.passwordTip')}</div>
|
|
|
- <Button className='font-medium !text-gray-700 !px-3 !py-[7px] !text-[13px]' onClick={() => setEditPasswordModalVisible(true)}>{userProfile.is_password_set ? t('common.account.resetPassword') : t('common.account.setPassword')}</Button>
|
|
|
+ <Button onClick={() => setEditPasswordModalVisible(true)}>{userProfile.is_password_set ? t('common.account.resetPassword') : t('common.account.setPassword')}</Button>
|
|
|
</div>
|
|
|
)}
|
|
|
<div className='mb-6 border-[0.5px] border-gray-100' />
|
|
@@ -165,7 +165,7 @@ export default function AccountPage() {
|
|
|
wrapperClassName='mt-2'
|
|
|
/>
|
|
|
)}
|
|
|
- {!IS_CE_EDITION && <Button className='mt-2 font-medium text-[#D92D20] !px-3 !py-[7px] !text-[13px]' onClick={() => setShowDeleteAccountModal(true)}>{t('common.account.delete')}</Button>}
|
|
|
+ {!IS_CE_EDITION && <Button className='mt-2 text-[#D92D20]' onClick={() => setShowDeleteAccountModal(true)}>{t('common.account.delete')}</Button>}
|
|
|
</div>
|
|
|
{editNameModalVisible && (
|
|
|
<Modal
|
|
@@ -181,11 +181,10 @@ export default function AccountPage() {
|
|
|
onChange={e => setEditName(e.target.value)}
|
|
|
/>
|
|
|
<div className='flex justify-end mt-10'>
|
|
|
- <Button className='mr-2 text-sm font-medium' onClick={() => setEditNameModalVisible(false)}>{t('common.operation.cancel')}</Button>
|
|
|
+ <Button className='mr-2' onClick={() => setEditNameModalVisible(false)}>{t('common.operation.cancel')}</Button>
|
|
|
<Button
|
|
|
disabled={editing || !editName}
|
|
|
variant='primary'
|
|
|
- className='text-sm font-medium'
|
|
|
onClick={handleSaveName}
|
|
|
>
|
|
|
{t('common.operation.save')}
|
|
@@ -231,14 +230,13 @@ export default function AccountPage() {
|
|
|
onChange={e => setConfirmPassword(e.target.value)}
|
|
|
/>
|
|
|
<div className='flex justify-end mt-10'>
|
|
|
- <Button className='mr-2 text-sm font-medium' onClick={() => {
|
|
|
+ <Button className='mr-2' onClick={() => {
|
|
|
setEditPasswordModalVisible(false)
|
|
|
resetPasswordForm()
|
|
|
}}>{t('common.operation.cancel')}</Button>
|
|
|
<Button
|
|
|
disabled={editing}
|
|
|
variant='primary'
|
|
|
- className='text-sm font-medium'
|
|
|
onClick={handleSavePassowrd}
|
|
|
>
|
|
|
{userProfile.is_password_set ? t('common.operation.reset') : t('common.operation.save')}
|
|
@@ -268,7 +266,7 @@ export default function AccountPage() {
|
|
|
</div>
|
|
|
<div className='my-2 px-3 py-2 rounded-lg bg-gray-100 text-sm font-medium leading-5 text-gray-800'>{`Delete Account: ${userProfile.email}`}</div>
|
|
|
<div className='pt-6 flex justify-end items-center'>
|
|
|
- <Button className='w-24 text-gray-700 text-sm font-medium' onClick={() => setShowDeleteAccountModal(false)}>{t('common.operation.ok')}</Button>
|
|
|
+ <Button className='w-24' onClick={() => setShowDeleteAccountModal(false)}>{t('common.operation.ok')}</Button>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
)}
|