Skip to content

Commit

Permalink
can change accounts from the account ssettings screen
Browse files Browse the repository at this point in the history
  • Loading branch information
gkasdorf committed Oct 21, 2023
1 parent 615ec0d commit 04cb017
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/Settings/screens/SettingsAccountsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { deleteAccount, useAccounts, useCurrentAccount } from '@src/state';
import ScrollView from '@components/Common/Gui/ScrollView';
import Table from '@components/Common/Table/Table';
import HeaderButton from '@components/Common/Button/HeaderButton';
import AccountsContextMenu from '@components/Common/ContextMenu/components/AccountsContextMenu';

interface IProps {
navigation: NativeStackNavigationProp<any>;
Expand Down Expand Up @@ -31,9 +32,19 @@ export default function SettingsAccountScreen({
return (
<ScrollView flex={1}>
<Table.Container>
<Table.Section header="Current Account">
<Table.Section
header="Current Account"
footer="You can quickly change accounts by pressing and holding the profile tab button."
>
<Table.Cell label="Server" rightLabel={currentAccount?.instance} />
<Table.Cell label="Username" rightLabel={currentAccount?.username} />
<AccountsContextMenu>
<Table.Cell
label="Username"
rightLabel={currentAccount?.username}
useChevron
isLast
/>
</AccountsContextMenu>
</Table.Section>
{accounts.map((account, index) => (
<Table.Section header={account.fullUsername} key={index}>
Expand Down

0 comments on commit 04cb017

Please sign in to comment.