Skip to content

Commit df5c2bc

Browse files
Merge pull request #3264 from JoinColony/feat/16099237-streaming-payments-subpage
feat: add streaming payments subpage
2 parents 9b453a5 + 578bb35 commit df5c2bc

File tree

4 files changed

+33
-7
lines changed

4 files changed

+33
-7
lines changed

src/components/frame/Extensions/layouts/consts.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
// SealCheck,
1616
// ChartPieSlice,
1717
// ListChecks,
18-
// ChartLine,
18+
ChartLine,
1919
// Intersect,
2020
// Briefcase,
2121
// BookOpenText,
@@ -37,6 +37,7 @@ import {
3737
COLONY_PERMISSIONS_ROUTE,
3838
// COLONY_REPUTATION_ROUTE,
3939
COLONY_TEAMS_ROUTE,
40+
COLONY_STREAMING_PAYMENTS_ROUTE,
4041
// COLONY_VERIFIED_ROUTE,
4142
} from '~routes/routeConstants.ts';
4243
import { formatText } from '~utils/intl.ts';
@@ -112,12 +113,12 @@ export const financesMenu: NavigationSidebarLinksListProps['items'] = [
112113
// text: 'Coming soon',
113114
// },
114115
// },
115-
// {
116-
// key: '5',
117-
// label: formatText({ id: 'navigation.finances.streamingPayments' }),
118-
// to: '/streaming-payments',
119-
// icon: ChartLine
120-
// },
116+
{
117+
key: '5',
118+
label: formatText({ id: 'navigation.finances.streamingPayments' }),
119+
to: COLONY_STREAMING_PAYMENTS_ROUTE,
120+
icon: ChartLine,
121+
},
121122
];
122123

123124
// @todo: update routes when pages will be ready
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
3+
import { useSetPageHeadingTitle } from '~context/PageHeadingContext/PageHeadingContext.ts';
4+
import { formatText } from '~utils/intl.ts';
5+
6+
const displayName = 'v5.pages.StreamingPaymentsPage';
7+
8+
const StreamingPaymentsPage = () => {
9+
useSetPageHeadingTitle(
10+
formatText({ id: 'navigation.finances.streamingPayments' }),
11+
);
12+
13+
return <div />;
14+
};
15+
16+
StreamingPaymentsPage.displayName = displayName;
17+
18+
export default StreamingPaymentsPage;

src/routes/Routes.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import MembersPage, {
2424
ContributorsPage,
2525
} from '~frame/v5/pages/MembersPage/index.ts';
2626
import OnboardingPage from '~frame/v5/pages/OnboardingPage/index.ts';
27+
import StreamingPaymentsPage from '~frame/v5/pages/StreamingPaymentsPage/StreamingPaymentsPage.tsx';
2728
import TeamsPage from '~frame/v5/pages/TeamsPage/index.ts';
2829
import UserAdvancedPage from '~frame/v5/pages/UserAdvancedPage/index.ts';
2930
import UserCryptoToFiatPage from '~frame/v5/pages/UserCryptoToFiatPage/CryptoToFiatPage.tsx';
@@ -68,6 +69,7 @@ import {
6869
COLONY_MULTISIG_ROUTE,
6970
COLONY_AGREEMENTS_ROUTE,
7071
USER_CRYPTO_TO_FIAT_ROUTE,
72+
COLONY_STREAMING_PAYMENTS_ROUTE,
7173
// ACTIONS_PAGE_ROUTE,
7274
// UNWRAP_TOKEN_ROUTE,
7375
// CLAIM_TOKEN_ROUTE,
@@ -141,6 +143,10 @@ const Routes = () => {
141143
<Route path={COLONY_VERIFIED_ROUTE} element={<VerifiedPage />} />
142144
<Route path={COLONY_BALANCES_ROUTE} element={<BalancePage />} />
143145
<Route path={COLONY_TEAMS_ROUTE} element={<TeamsPage />} />
146+
<Route
147+
path={COLONY_STREAMING_PAYMENTS_ROUTE}
148+
element={<StreamingPaymentsPage />}
149+
/>
144150
</Route>
145151

146152
<Route path={COLONY_REPUTATION_ROUTE} element={<ReputationPage />} />

src/routes/routeConstants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const COLONY_ADVANCED_ROUTE = `advanced`;
2222
export const COLONY_EXTENSION_DETAILS_ROUTE = `${COLONY_EXTENSIONS_ROUTE}/:extensionId`;
2323
export const COLONY_INCOMING_ROUTE = `incoming`;
2424
export const COLONY_BALANCES_ROUTE = `balances`;
25+
export const COLONY_STREAMING_PAYMENTS_ROUTE = `streaming-payments`;
2526
export const COLONY_MEMBERS_ROUTE = `members`;
2627
export const COLONY_MEMBERS_WITH_DOMAIN_ROUTE = `members/:domainId`;
2728
export const COLONY_CONTRIBUTORS_ROUTE = `members/contributors`;

0 commit comments

Comments
 (0)