Skip to content

Commit

Permalink
Merge pull request #1187 from near/chore/add-idos-create-account-url
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy authored May 28, 2024
2 parents 68cd8ca + 6e90180 commit e7a7bfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ NEXT_PUBLIC_NOTIFICATIONS_APPLICATION_SERVER_KEY=
NEXT_PUBLIC_COMMIT_MODAL_BYPASS_AUTHOR_IDS=near,discom.testnet,discom-dev.testnet
NEXT_PUBLIC_COMMIT_MODAL_BYPASS_SOURCES=
# sidebar or marketing layout
NEXT_PUBLIC_SIDEBAR_LAYOUT=true
NEXT_PUBLIC_SIDEBAR_LAYOUT=true
NEXT_PUBLIC_IDOS_CREATE_ACCOUNT_URL="https://app.fractal.id/authorize?client_id=PXAbBxPErSPMXiKmMYQ3ged8Qxwqg1Px7ymhsuhaGP4&redirect_uri=https%3A%2F%2Fdev.near.org%2Fsettings&response_type=code&scope=contact%3Aread%20verification.uniqueness%3Aread%20verification.uniqueness.details%3Aread%20verification.idos%3Aread%20verification.idos.details%3Aread%20verification.wallet-near%3Aread%20verification.wallet-near.details%3Aread"
2 changes: 2 additions & 0 deletions src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useDefaultLayout } from '@/hooks/useLayout';
import { useAuthStore } from '@/stores/auth';
import { useIdosStore } from '@/stores/idosStore';
import { recordHandledError } from '@/utils/analytics';
import { idosCreateAccountUrl } from '@/utils/config';
import type { NextPageWithLayout } from '@/utils/types';

const SettingsPage: NextPageWithLayout = () => {
Expand Down Expand Up @@ -83,6 +84,7 @@ const SettingsPage: NextPageWithLayout = () => {
showTooltip: false,
walletImages,
connectedWallet: !accountId ? undefined : connectedWallet,
idosCreateAccountUrl, // originally, this should came from idOS maybe we should change it someday
}}
/>
);
Expand Down
1 change: 1 addition & 0 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const isLocalEnvironment = process.env.NEXT_PUBLIC_LOCAL_ENVIRONMENT ===
export const eventsApiUrl = process.env.NEXT_PUBLIC_EVENTS_API_URL;
export const eventsApiKey = process.env.NEXT_PUBLIC_EVENTS_API_KEY;
export const sidebarLayoutEnabled = process.env.NEXT_PUBLIC_SIDEBAR_LAYOUT === 'true';
export const idosCreateAccountUrl = process.env.NEXT_PUBLIC_IDOS_CREATE_ACCOUNT_URL;

export const commitModalBypassAuthorIds = (process.env.NEXT_PUBLIC_COMMIT_MODAL_BYPASS_AUTHOR_IDS ?? '')
.split(',')
Expand Down

0 comments on commit e7a7bfd

Please sign in to comment.