Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 5da92f0

Browse files
authored
Merge pull request #534 from topcoder-platform/feature/interview-update
[DEV] Interview Scheduler using Nylas
2 parents 286496e + a7c8a68 commit 5da92f0

File tree

49 files changed

+2408
-376
lines changed

Some content is hidden

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

49 files changed

+2408
-376
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,13 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
136136
nvm use # or make sure to use Node 10
137137
npm i # to install dependencies
138138

139-
# set environment variables:
139+
# set environment variables:
140140

141141
export STRIPE_PUBLIC_KEY=""
142142

143+
# get the below client id from Nylas app settings in Nylas account
144+
export NYLAS_CLIENT_ID=""
145+
143146
npm run dev
144147

145148
# this host TaaS App as http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js

config/dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
CONNECT_WEBSITE_URL: "https://connect.topcoder-dev.com",
1111

1212
API: {
13-
V5: "https://api.topcoder-dev.com/v5", //"http://localhost:3030/api/v5"
13+
V5: "https://api.topcoder-dev.com/v5", //"http://localhost:3000/api/v5"
1414
V3: "https://api.topcoder-dev.com/v3",
1515
},
1616
};

package-lock.json

Lines changed: 109 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@
7070
"final-form": "^4.20.1",
7171
"final-form-arrays": "^3.0.2",
7272
"immutability-helper": "^3.1.1",
73+
"jsonwebtoken": "^8.5.1",
7374
"lodash": "^4.17.20",
7475
"moment": "^2.29.1",
7576
"moment-timezone": "^0.5.33",
7677
"prop-types": "^15.7.2",
78+
"query-string": "^7.0.1",
7779
"react": "^16.12.0",
7880
"react-avatar": "^3.9.7",
7981
"react-datepicker": "^3.8.0",
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/assets/images/icon-google.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading

src/assets/images/icon-microsoft.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/images/icon-plus.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/BaseModal/index.jsx

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,30 @@
1010

1111
import React from "react";
1212
import PT from "prop-types";
13+
import cn from "classnames";
1314
import { Modal } from "react-responsive-modal";
1415
import Button from "../Button";
1516
import IconCross from "../../assets/images/icon-cross-light.svg";
1617
import "./styles.module.scss";
1718

1819
const modalStyle = {
1920
borderRadius: "8px",
20-
padding: "32px 32px 22px 32px",
21+
padding: "20px 24px",
2122
maxWidth: "640px",
2223
width: "100%",
2324
margin: 0,
24-
"overflow-x": "hidden",
25+
overflowX: "hidden",
2526
};
2627

2728
const containerStyle = {
2829
padding: "10px",
2930
};
3031

32+
const closeButton = {
33+
right: "24px",
34+
top: "24px",
35+
};
36+
3137
function BaseModal({
3238
open,
3339
onClose,
@@ -37,31 +43,47 @@ function BaseModal({
3743
closeButtonText,
3844
disabled,
3945
extraModalStyle,
46+
alignTitleCenter = false,
47+
showButton = true,
48+
closeIcon: CloseIcon,
4049
}) {
4150
return (
4251
<Modal
4352
open={open}
4453
onClose={onClose}
45-
closeIcon={<IconCross width="15px" height="15px" />}
54+
closeIcon={
55+
CloseIcon ? CloseIcon : <IconCross width="15px" height="15px" />
56+
}
4657
styles={{
4758
modal: { ...modalStyle, ...extraModalStyle },
4859
modalContainer: containerStyle,
60+
closeButton,
4961
}}
5062
center={true}
5163
>
52-
{title && <h2 styleName="title">{title}</h2>}
53-
<div styleName="content">{children}</div>
54-
<div styleName="button-group">
55-
{button && button}
56-
<Button
57-
type="secondary"
58-
size="medium"
59-
onClick={onClose}
60-
disabled={disabled}
64+
{title && (
65+
<h2
66+
styleName={cn("title", {
67+
"center-title": alignTitleCenter,
68+
})}
6169
>
62-
{closeButtonText ? closeButtonText : "Cancel"}
63-
</Button>
64-
</div>
70+
{title}
71+
</h2>
72+
)}
73+
<div styleName="content">{children}</div>
74+
{showButton && (
75+
<div styleName="button-group">
76+
{button && button}
77+
<Button
78+
type="secondary"
79+
size="medium"
80+
onClick={onClose}
81+
disabled={disabled}
82+
>
83+
{closeButtonText ? closeButtonText : "Cancel"}
84+
</Button>
85+
</div>
86+
)}
6587
</Modal>
6688
);
6789
}
@@ -75,6 +97,9 @@ BaseModal.propTypes = {
7597
closeButtonText: PT.string,
7698
disabled: PT.bool,
7799
extraModalStyle: PT.object,
100+
showButton: PT.bool,
101+
alignTitleCenter: PT.bool,
102+
closeIcon: PT.node,
78103
};
79104

80105
export default BaseModal;

0 commit comments

Comments
 (0)