Skip to content

Commit

Permalink
perf(usability): move the connect-wallet widget towards the top of th…
Browse files Browse the repository at this point in the history
…e settings dialog

Out of all things in the settings, the theme changer and the connect-wallet widget would be the most
used. Both of those thing should be among the first thing in the settings.
  • Loading branch information
No-Cash-7970 committed Oct 8, 2024
1 parent 3481093 commit c2f01a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/[lang]/components/NavBar/Settings/SettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export default function SettingsForm(props: Props) {
{/* Setting: Theme setting */}
<ThemeChanger lng={props.lng} notify={notifySave} />

{/* Connect wallet */}
<div className='mt-8'>
<WalletProvider sitename={t('site_name')}><ConnectWallet t={t} /></WalletProvider>
</div>

<h3>{t('settings.compose_txn_general_heading')}</h3>

{/* Setting: Do not allow form errors setting */}
Expand Down Expand Up @@ -266,11 +271,6 @@ export default function SettingsForm(props: Props) {
}}
/>

{/* Connect wallet */}
<div className='mt-8'>
<WalletProvider sitename={t('site_name')}><ConnectWallet t={t} /></WalletProvider>
</div>

<h3>{t('settings.clear_reset_heading')}</h3>

{/* Clear data buttons */}
Expand Down

0 comments on commit c2f01a1

Please sign in to comment.