Skip to content

Commit d6bf349

Browse files
xdzurmanszymonmaslowskiprzemyslaw-wlodek
authored
feat(staking): LW-7406: extended version of management drawer (#579)
--------- Co-authored-by: Szymon Masłowski <szymon.maslowski@iohk.io> Co-authored-by: Przemysław Włodek <przem.wlodek.github@gmail.com>
1 parent 0ecb0bf commit d6bf349

File tree

115 files changed

+741
-476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+741
-476
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"packages/ui"
2525
],
2626
"scripts": {
27-
"base-command-for-build-scripts": "wsrun --prefix -tram ${APP_NAME:+-p \"@lace/$APP_NAME\"} ${EXCLUDE_APP:+-x \"@lace/$APP_NAME\"} ${EXCLUDE_BROWSER:+-x \"@lace/browser-extension-wallet\"}",
27+
"base-command-for-build-scripts": "wsrun --prefix -trame ${APP_NAME:+-p \"@lace/$APP_NAME\"} ${EXCLUDE_APP:+-x \"@lace/$APP_NAME\"} ${EXCLUDE_BROWSER:+-x \"@lace/browser-extension-wallet\"}",
2828
"browser": "APP_NAME=browser-extension-wallet yarn $0",
2929
"build": "yarn base-command-for-build-scripts -c build",
3030
"build-deps": "EXCLUDE_APP=true yarn build",

packages/staking/.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
src/features/browse-pools/data.json
1+
src/features/BrowsePools/data.json

packages/staking/.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
'@typescript-eslint/explicit-module-boundary-types': 'off',
2323
'@typescript-eslint/no-unused-vars': 'error',
2424
'@typescript-eslint/switch-exhaustiveness-check': 'error',
25+
curly: ['error', 'multi-line'],
2526
'import/no-default-export': 'error',
2627
'import/no-extraneous-dependencies': 2,
2728
'import/no-unresolved': 'off',

packages/staking/src/features/browse-pools/PortfolioBar.tsx renamed to packages/staking/src/features/BrowsePools/PortfolioBar.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@ import { Button, Card, Flex, Text } from '@lace/ui';
33
import { useOutsideHandles } from 'features/outside-handles-provider';
44
import { useTranslation } from 'react-i18next';
55
import ArrowRight from '../staking/arrow-right.svg';
6-
import { Flow, MAX_POOLS_COUNT, useDelegationPortfolioStore } from '../store';
6+
import { DelegationFlow, MAX_POOLS_COUNT, useDelegationPortfolioStore } from '../store';
77
import * as styles from './PortfolioBar.css';
88

99
export const PortfolioBar = () => {
1010
const { t } = useTranslation();
11-
const { activeFlow, portfolioMutators, selectedPoolsCount } = useDelegationPortfolioStore((store) => ({
12-
activeFlow: store.activeFlow,
11+
const { activeDelegationFlow, portfolioMutators, selectedPoolsCount } = useDelegationPortfolioStore((store) => ({
12+
activeDelegationFlow: store.activeDelegationFlow,
1313
portfolioMutators: store.mutators,
1414
selectedPoolsCount: store.selectedPortfolio.length,
1515
}));
1616
const { analytics } = useOutsideHandles();
1717

18-
if (![Flow.BrowsePools, Flow.PoolDetails].includes(activeFlow) || selectedPoolsCount === 0) return null;
18+
if (
19+
![DelegationFlow.BrowsePools, DelegationFlow.PoolDetails].includes(activeDelegationFlow) ||
20+
selectedPoolsCount === 0
21+
) {
22+
return null;
23+
}
1924

2025
return (
2126
<Card.Elevated className={styles.barContainer}>

0 commit comments

Comments
 (0)