Skip to content

Commit 969f0d1

Browse files
authored
Merge pull request #777 from topcoder-platform/issue-744
Onboarding - Vertical Scroll bar is removed when opening Experience/education modals
2 parents c88a4e2 + d7e2257 commit 969f0d1

File tree

58 files changed

+1002
-557
lines changed

Some content is hidden

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

58 files changed

+1002
-557
lines changed

.circleci/config.yml

Lines changed: 194 additions & 197 deletions
Large diffs are not rendered by default.

.environments/.env.dev

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
55
# Stripe configs
66
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
8-
# not really used anywhere
9-
REACT_APP_STRIPE_ADMIN_TOKEN=
10-
REACT_APP_STRIPE_CUSTOMER_TOKEN=
118

129
# Vanilla Forums
1310
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV

.environments/.env.prod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
55
# Stripe configs
66
REACT_APP_STRIPE_API_KEY=pk_live_m3bCBVSfkfMOEp3unZFRsHXi
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
8-
# not really used anywhere
9-
REACT_APP_STRIPE_ADMIN_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJUb3Bjb2RlciBVc2VyIiwiYWRtaW5pc3RyYXRvciJdLCJpc3MiOiJodHRwczovL2FwaS50b3Bjb2Rlci1kZXYuY29tIiwiaGFuZGxlIjoidGVzdDEiLCJleHAiOjI1NjMwNzY2ODksInVzZXJJZCI6IjQwMDUxMzMzIiwiaWF0IjoxNDYzMDc2MDg5LCJlbWFpbCI6InRlc3RAdG9wY29kZXIuY29tIiwianRpIjoiYjMzYjc3Y2QtYjUyZS00MGZlLTgzN2UtYmViOGUwYWU2YTRhIn0.wKWUe0-SaiFVN-VR_-GwgFlvWaDkSbc8H55ktb9LAVw
10-
REACT_APP_STRIPE_CUSTOMER_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJUb3Bjb2RlciBVc2VyIl0sImlzcyI6Imh0dHBzOi8vYXBpLnRvcGNvZGVyLWRldi5jb20iLCJoYW5kbGUiOiJ0ZXN0MSIsImV4cCI6MjU2MzA3NjY4OSwidXNlcklkIjoiNDAwNTEzMzMiLCJpYXQiOjE0NjMwNzYwODksImVtYWlsIjoidGVzdEB0b3Bjb2Rlci5jb20iLCJqdGkiOiJiMzNiNzdjZC1iNTJlLTQwZmUtODM3ZS1iZWI4ZTBhZTZhNGEifQ.jl6Lp_friVNwEP8nfsfmL-vrQFzOFp2IfM_HC7AwGcg
118

129
# Vanilla Forums
1310
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV

.environments/.env.qa

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
55
# Stripe configs
66
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
8-
# not really used anywhere
9-
REACT_APP_STRIPE_ADMIN_TOKEN=
10-
REACT_APP_STRIPE_CUSTOMER_TOKEN=
118

129
# Vanilla Forums
1310
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV

craco.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ const BabelRcPlugin = require('@jackwilsdon/craco-use-babelrc');
55

66
const isProd = process.env.APPMODE === "production";
77

8+
function getModeName() {
9+
const index = process.argv.indexOf('--mode');
10+
return index === -1 ? '' : process.argv[index + 1] || ''
11+
}
12+
13+
console.log({buildMode: getModeName()});
14+
815
const localIdentName = isProd
916
? "[hash:base64:6]"
1017
: "[name]_[local]__[hash:base64:6]";

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"private": true,
55
"license": "ISC",
66
"scripts": {
7-
"dev": "craco start --mode ${REACT_APP_HOST_ENV:-dev}",
7+
"dev": "craco start --mode ${LOGICAL_ENV:-dev}",
88
"start": "bash start.sh",
9-
"build": "export CI=false && craco build --mode ${REACT_APP_HOST_ENV:-prod}",
10-
"build:dev": "craco build --mode ${REACT_APP_HOST_ENV:-dev}",
9+
"build": "export CI=false && craco build --mode ${LOGICAL_ENV:-prod}",
10+
"build:dev": "craco build --mode ${LOGICAL_ENV:-dev}",
1111
"demo": "npx http-server --port 443 -a 0.0.0.0 -S -C ./ssl/rootCA.crt -K ./ssl/rootCA.key -P https://local.topcoder-dev.com? --proxy-options.secure false ./build",
1212
"lint": "eslint -c ./src/.eslintrc.js 'src/**/*.{ts,tsx,js,jsx}'",
1313
"lint:fix": "yarn lint --fix",

src/apps/onboarding/src/components/onboarding-base-modal/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const OnboardingBaseModal: FC<OnboardingBaseModalProps> = (props: OnboardingBase
2020
size='body'
2121
title={props.title}
2222
classNames={{ modal: styles.infoModal }}
23-
blockScroll
2423
>
2524
{props.children}
2625
</BaseModal>

src/apps/onboarding/src/onboarding.routes.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Navigate } from 'react-router-dom'
22

3-
import { ToolTitle } from '~/config/constants'
3+
import { EnvironmentConfig } from '~/config'
4+
import { AppSubdomain, ToolTitle } from '~/config/constants'
45
import { lazyLoad, LazyLoadedComponent, PlatformRoute, UserRole } from '~/libs/core'
56

67
const PageOnboarding: LazyLoadedComponent = lazyLoad(() => import('./pages/onboarding/index'), 'OnboardingWrapper')
@@ -18,7 +19,10 @@ const PageAccountDetails: LazyLoadedComponent = lazyLoad(
1819
'PageAccountDetails',
1920
)
2021
const toolTitle: string = ToolTitle.onboarding
21-
const onboardingRootRoute: string = '/onboarding'
22+
23+
export const rootRoute: string = (
24+
EnvironmentConfig.SUBDOMAIN === AppSubdomain.onboarding ? '' : `/${AppSubdomain.onboarding}`
25+
)
2226

2327
export const onboardRouteId: string = `${toolTitle} Onbarding`
2428

@@ -59,12 +63,13 @@ export const onboardingRoutes: ReadonlyArray<PlatformRoute> = [
5963
route: '/account-details',
6064
},
6165
],
66+
domain: AppSubdomain.onboarding,
6267
element: <PageOnboarding />,
6368
id: onboardRouteId,
6469
rolesRequired: [
6570
UserRole.member,
6671
],
67-
route: onboardingRootRoute,
72+
route: rootRoute,
6873
title: toolTitle,
6974
},
7075
]
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
@import "@libs/ui/styles/includes";
22

33
.editMemberPropertyBtn {
4+
padding: 0 !important;
5+
padding-left: $sp-4 !important;
6+
color: $black-100;
7+
48
svg {
5-
width: 16px;
6-
height: 16px;
9+
width: 20px;
10+
height: 20px;
711
}
812
}

src/apps/profiles/src/components/EditMemberPropertyBtn/EditMemberPropertyBtn.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const EditMemberPropertyBtn: FC<EditMemberPropertyBtnProps> = (props: EditMember
1313
icon={IconOutline.PencilIcon}
1414
onClick={props.onClick}
1515
className={styles.editMemberPropertyBtn}
16+
size='lg'
1617
/>
1718
)
1819

0 commit comments

Comments
 (0)