forked from Joystream/atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wallet settings, change password and download mnemonic (Joystream#4326)
* wip * settings view ground work * uncomment route * add borderColor prop to banner * fix issues with modal paddings * create password form component, sign up modal refactoring * add export seed dialog and change password dialog * handle copy button * show different settings for wallet users * refactor password dialogs * cr fixes * Update packages/atlas/src/views/viewer/MembershipSettingsView/MembershipWallet/MembershipWallet.tsx Co-authored-by: attemka <attemka@gmail.com> * auth helpers further refactor * reset form on cancel * cr fixes * cr fixes 2 * add additional step to ChangePassword * action bar adjustments, add unsaved changes dialog * fix viewer layout * action bar changes * action bar adjustments * cr fixes * fix fee issue * change password fix? --------- Co-authored-by: attemka <attemka@gmail.com>
- Loading branch information
1 parent
99ba39e
commit 7135913
Showing
36 changed files
with
1,005 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
import { FC, ReactNode } from 'react' | ||
|
||
import { PageTabsWrapper, TailingContentWrapper } from './PageTabs.styles' | ||
import { SvgActionChevronL } from '@/assets/icons' | ||
|
||
import { BackActionWrapper, PageTabsWrapper, TailingContentWrapper } from './PageTabs.styles' | ||
|
||
import { Tabs, TabsProps } from '../Tabs' | ||
import { Button, ButtonProps } from '../_buttons/Button' | ||
|
||
type BackAction = Pick<ButtonProps, 'to' | 'onClick'> | ||
|
||
type PageTabsProps = { | ||
type PageTabsProps = Omit<TabsProps, 'underline'> & { | ||
backAction?: BackAction | ||
trailingContent?: ReactNode | ||
} & Omit<TabsProps, 'underline'> | ||
} | ||
|
||
export const PageTabs: FC<PageTabsProps> = ({ className, trailingContent, ...tabsProps }) => { | ||
export const PageTabs: FC<PageTabsProps> = ({ className, backAction, trailingContent, ...tabsProps }) => { | ||
return ( | ||
<PageTabsWrapper className={className}> | ||
{backAction && ( | ||
<BackActionWrapper> | ||
<Button variant="tertiary" size="medium" icon={<SvgActionChevronL />} {...backAction} /> | ||
</BackActionWrapper> | ||
)} | ||
<Tabs {...tabsProps} /> | ||
{/* todo add support for filters */} | ||
{trailingContent && <TailingContentWrapper>{trailingContent}</TailingContentWrapper>} | ||
{/* todo add support for filters */} | ||
</PageTabsWrapper> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.