-
Notifications
You must be signed in to change notification settings - Fork 15
Merge main into feat/sanchonet #763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
przemyslaw-wlodek
merged 17 commits into
feat/sanchonet
from
chore/lw-9215-merge-main-to-sanchonet
Dec 1, 2023
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c9af7bc
feat(staking): maintenance 24 Nov 2023 (#754)
oldGreg5 d4415a2
[LW-9151] Edit account name component (#746)
8ab805f
feat(extension): [LW-5806] update Minting transaction display from da…
lgobbi-atix 22cbd6f
test(extension): maintenance 27 nov (#757)
bslabiak 5b71918
feat(staking): [LW-6437, LW-8877] past epochs rewards chart (#718)
mrcnk 4020bc9
feat(extension): track manual re-sync and hd wallet discovery (#712)
refi93 8d37af2
feat(staking): [LW-8929, LW-8777] apply pool search also to selected …
xdzurman 660082b
feat(staking,common): enable manageDelegation CTA from pool details (…
xdzurman b4d0f4d
feat(staking): load multi-delegation for HW wallets (#686)
xdzurman fd87199
test(extension): test maintenance 29 Nov - fix Dapp e2e (#760)
ljagiela 7421e8f
feat(extension): [LW-9028] Add wallet concepts to menu (#742)
renanvalentin 19ca42f
Merge remote-tracking branch 'origin/main' into chore/lw-9215-merge-m…
przemyslaw-wlodek e844729
refactor(extension,core,cardano): post-merge fixes
przemyslaw-wlodek fe41b54
chore(extension): fix unit tests + rename
przemyslaw-wlodek 5566b3b
chore(extension): fix unit tests and mocks
przemyslaw-wlodek 401b155
chore(extension): remove TODO comments
przemyslaw-wlodek d2af775
chore(core): review comments
przemyslaw-wlodek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -45,3 +45,7 @@ | |
| transform: rotateX(180deg); | ||
| } | ||
| } | ||
|
|
||
| .profileDropdownTrigger { | ||
| flex-shrink: 0; | ||
| } | ||
This file contains hidden or 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 hidden or 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
30 changes: 25 additions & 5 deletions
30
apps/browser-extension-wallet/src/components/ExpandButton/ExpandButton.tsx
This file contains hidden or 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,11 +1,31 @@ | ||
| import React from 'react'; | ||
| /* eslint-disable react/no-multi-comp */ | ||
| import React, { ReactNode } from 'react'; | ||
| import ExpandIcon from '../../assets/icons/expand.component.svg'; | ||
| import classnames from 'classnames'; | ||
| import { Tooltip } from 'antd'; | ||
|
|
||
| import styles from './ExpandButton.module.scss'; | ||
|
|
||
przemyslaw-wlodek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| const RenderTooltipIfMultiWallet = ({ children, label }: { children: ReactNode; label: string }) => { | ||
| if (process.env.USE_MULTI_WALLET === 'true') { | ||
| return <Tooltip title={label}>{children}</Tooltip>; | ||
| } | ||
|
|
||
| return <>{children}</>; | ||
| }; | ||
przemyslaw-wlodek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| export const ExpandButton = ({ label, onClick }: { label: string; onClick: () => void }): React.ReactElement => ( | ||
| <a onClick={onClick} href="#" className={styles.button} data-testid="expand-button"> | ||
| <ExpandIcon className={styles.icon} /> | ||
| <span className={styles.text}>{label}</span> | ||
| </a> | ||
| <RenderTooltipIfMultiWallet label={label}> | ||
| <a | ||
| onClick={onClick} | ||
| href="#" | ||
| className={classnames(styles.button, { | ||
| [styles.multiWallet]: process.env.USE_MULTI_WALLET === 'true' | ||
| })} | ||
| data-testid="expand-button" | ||
| > | ||
| <ExpandIcon className={styles.icon} /> | ||
| {process.env.USE_MULTI_WALLET !== 'true' && <span className={styles.text}>{label}</span>} | ||
przemyslaw-wlodek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </a> | ||
| </RenderTooltipIfMultiWallet> | ||
| ); | ||
This file contains hidden or 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 hidden or 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
20 changes: 20 additions & 0 deletions
20
...ension-wallet/src/components/MainMenu/DropdownMenuOverlay/components/AddNewWalletLink.tsx
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import React from 'react'; | ||
| import { walletRoutePaths } from '@routes'; | ||
| import { Menu } from 'antd'; | ||
| import { useTranslation } from 'react-i18next'; | ||
| import { Link } from 'react-router-dom'; | ||
| import styles from '../DropdownMenuOverlay.module.scss'; | ||
|
|
||
| const handleOnClicked = (): void => void 0; | ||
przemyslaw-wlodek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| export const AddNewWalletLink = (): React.ReactElement => { | ||
| const { t } = useTranslation(); | ||
|
|
||
| return ( | ||
| <Link to={walletRoutePaths.newWallet.home} onClick={handleOnClicked}> | ||
| <Menu.Item data-testid="header-menu-new-wallet" className={styles.menuItem}> | ||
| <a>{t('browserView.sideMenu.links.addNewWallet')}</a> | ||
| </Menu.Item> | ||
| </Link> | ||
| ); | ||
| }; | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.