mario-teacher-student-client 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
1
2
|
declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
2
3
|
firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
3
4
|
lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
5
|
email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
6
|
+
secondaryEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
7
|
+
thirdEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
5
8
|
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
6
9
|
firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
7
10
|
lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
8
11
|
email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
12
|
+
secondaryEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
13
|
+
thirdEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
9
14
|
}>>;
|
|
10
15
|
export default schema;
|
package/dist/index.js
CHANGED
|
@@ -5270,7 +5270,7 @@ function BiArrowBack (props) {
|
|
|
5270
5270
|
}
|
|
5271
5271
|
|
|
5272
5272
|
var _templateObject;
|
|
5273
|
-
var Header = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 64px;\n display: flex;\n height: 76px;\n justify-content: space-between;\n align-items: center;\n padding: 20px 16px;\n border-bottom: 1px solid #a3a2a2;\n background: #fff;\n z-index: 99;\n width: ", "px;\n transition: width 200ms;\n @media (max-width: 600px) {\n width: 100%;\n top: 56px;\n }\n"])), function (props) {
|
|
5273
|
+
var Header = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 64px;\n width: 100%;\n display: flex;\n height: 76px;\n justify-content: space-between;\n align-items: center;\n padding: 20px 16px;\n border-bottom: 1px solid #a3a2a2;\n background: #fff;\n z-index: 99;\n width: ", "px;\n transition: width 200ms;\n @media (max-width: 600px) {\n width: 100%;\n top: 56px;\n }\n"])), function (props) {
|
|
5274
5274
|
return props.width;
|
|
5275
5275
|
});
|
|
5276
5276
|
|
|
@@ -17324,18 +17324,18 @@ var ConferenceRubric = function ConferenceRubric() {
|
|
|
17324
17324
|
id: "outlined-age-native-simple"
|
|
17325
17325
|
}
|
|
17326
17326
|
}, React__default.createElement("option", {
|
|
17327
|
+
value: 10
|
|
17328
|
+
}, "10 min"), React__default.createElement("option", {
|
|
17329
|
+
value: 20
|
|
17330
|
+
}, "20 min"), React__default.createElement("option", {
|
|
17331
|
+
value: 30
|
|
17332
|
+
}, "30 min"), React__default.createElement("option", {
|
|
17333
|
+
value: 40
|
|
17334
|
+
}, "40 min"), React__default.createElement("option", {
|
|
17335
|
+
value: 50
|
|
17336
|
+
}, "50 min"), React__default.createElement("option", {
|
|
17327
17337
|
value: 60
|
|
17328
|
-
}, "
|
|
17329
|
-
value: 120
|
|
17330
|
-
}, "2h"), React__default.createElement("option", {
|
|
17331
|
-
value: 180
|
|
17332
|
-
}, "3h"), React__default.createElement("option", {
|
|
17333
|
-
value: 240
|
|
17334
|
-
}, "4h"), React__default.createElement("option", {
|
|
17335
|
-
value: 300
|
|
17336
|
-
}, "5h"), React__default.createElement("option", {
|
|
17337
|
-
value: 360
|
|
17338
|
-
}, "6h")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", {
|
|
17338
|
+
}, "1 hour")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", {
|
|
17339
17339
|
className: styles$7["tite-body"]
|
|
17340
17340
|
}, "Be sure to check with your teacher that you have completed all that is required")))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
|
|
17341
17341
|
onClick: handleModalConferenceClose,
|
|
@@ -20310,7 +20310,9 @@ var useUpdateProfile = function useUpdateProfile(studentId) {
|
|
|
20310
20310
|
var schema$1 = yup.object({
|
|
20311
20311
|
firstName: yup.string().required("First name is required"),
|
|
20312
20312
|
lastName: yup.string().required("Last name is required"),
|
|
20313
|
-
email: yup.string().email('Invalid email').required("Email is required")
|
|
20313
|
+
email: yup.string().email('Invalid email').required("Email is required"),
|
|
20314
|
+
secondaryEmail: yup.string().email('Invalid email'),
|
|
20315
|
+
thirdEmail: yup.string().email('Invalid email')
|
|
20314
20316
|
});
|
|
20315
20317
|
|
|
20316
20318
|
var DEFAULT_USER_AVATAR$f = "/images/image-default.png";
|
|
@@ -20859,13 +20861,16 @@ var CreateStudent = function CreateStudent() {
|
|
|
20859
20861
|
}, errors.email) : null, React__default.createElement(core.Typography, {
|
|
20860
20862
|
className: "" + styles$9["profile-label"]
|
|
20861
20863
|
}, "Secondary Email (optional)"), React__default.createElement(core.TextField, {
|
|
20864
|
+
name: "email",
|
|
20862
20865
|
variant: "outlined",
|
|
20863
20866
|
value: values === null || values === void 0 ? void 0 : values.secondaryEmail,
|
|
20864
20867
|
className: "" + styles$9["input-field"],
|
|
20865
20868
|
onChange: function onChange(e) {
|
|
20866
20869
|
return setFieldValue("secondaryEmail", e.target.value);
|
|
20867
20870
|
}
|
|
20868
|
-
}), React__default.createElement(
|
|
20871
|
+
}), errors.secondaryEmail && touched.secondaryEmail ? React__default.createElement("div", {
|
|
20872
|
+
className: "" + styles$9["input-error"]
|
|
20873
|
+
}, errors.secondaryEmail) : null, React__default.createElement(core.Typography, {
|
|
20869
20874
|
className: "" + styles$9["profile-label"]
|
|
20870
20875
|
}, "Secondary Email Owner"), React__default.createElement(core.TextField, {
|
|
20871
20876
|
select: true,
|
|
@@ -20883,13 +20888,16 @@ var CreateStudent = function CreateStudent() {
|
|
|
20883
20888
|
})), React__default.createElement(core.Typography, {
|
|
20884
20889
|
className: "" + styles$9["profile-label"]
|
|
20885
20890
|
}, "Third Email (optional)"), React__default.createElement(core.TextField, {
|
|
20891
|
+
name: "email",
|
|
20886
20892
|
variant: "outlined",
|
|
20887
20893
|
value: values === null || values === void 0 ? void 0 : values.thirdEmail,
|
|
20888
20894
|
className: "" + styles$9["input-field"],
|
|
20889
20895
|
onChange: function onChange(e) {
|
|
20890
20896
|
return setFieldValue("thirdEmail", e.target.value);
|
|
20891
20897
|
}
|
|
20892
|
-
}), React__default.createElement(
|
|
20898
|
+
}), errors.thirdEmail && touched.thirdEmail ? React__default.createElement("div", {
|
|
20899
|
+
className: "" + styles$9["input-error"]
|
|
20900
|
+
}, errors.thirdEmail) : null, React__default.createElement(core.Typography, {
|
|
20893
20901
|
className: "" + styles$9["profile-label"]
|
|
20894
20902
|
}, "Third Email Owner"), React__default.createElement(core.TextField, {
|
|
20895
20903
|
select: true,
|
|
@@ -21556,7 +21564,7 @@ function NotificationsPage() {
|
|
|
21556
21564
|
}
|
|
21557
21565
|
}, React__default.createElement("p", {
|
|
21558
21566
|
className: classes.textNotifications
|
|
21559
|
-
}, "Send notification when
|
|
21567
|
+
}, "Send notification when a student quick start a session/conference"), React__default.createElement(core.Switch, {
|
|
21560
21568
|
color: "primary",
|
|
21561
21569
|
name: "IsReceiveNotificationBookedSession",
|
|
21562
21570
|
onChange: onChangeDataSettingPage,
|
|
@@ -21572,7 +21580,7 @@ function NotificationsPage() {
|
|
|
21572
21580
|
}
|
|
21573
21581
|
}, React__default.createElement("p", {
|
|
21574
21582
|
className: classes.textNotifications
|
|
21575
|
-
}, "Send notification when
|
|
21583
|
+
}, "Send notification when a student books a session/conference"), React__default.createElement(core.Switch, {
|
|
21576
21584
|
color: "primary",
|
|
21577
21585
|
name: "IsReceiveNotificationPrebookedSession",
|
|
21578
21586
|
onChange: onChangeDataSettingPage,
|
|
@@ -21586,7 +21594,7 @@ function NotificationsPage() {
|
|
|
21586
21594
|
style: {
|
|
21587
21595
|
fontSize: "18px"
|
|
21588
21596
|
}
|
|
21589
|
-
}, "
|
|
21597
|
+
}, "Mute notifications over night"), screenWidth$3 < 600 ? React__default.createElement(pickers.MuiPickersUtilsProvider, {
|
|
21590
21598
|
utils: MomentUtils
|
|
21591
21599
|
}, React__default.createElement(pickers.KeyboardDateTimePicker, {
|
|
21592
21600
|
disablePast: true,
|
|
@@ -21595,6 +21603,8 @@ function NotificationsPage() {
|
|
|
21595
21603
|
margin: "normal",
|
|
21596
21604
|
id: "date-picker-inline",
|
|
21597
21605
|
label: "From",
|
|
21606
|
+
error: false,
|
|
21607
|
+
helperText: null,
|
|
21598
21608
|
value: dataSetting.MuteNotificationStartTime,
|
|
21599
21609
|
onChange: handleDateChangeStart,
|
|
21600
21610
|
KeyboardButtonProps: {
|
|
@@ -21607,6 +21617,8 @@ function NotificationsPage() {
|
|
|
21607
21617
|
margin: "normal",
|
|
21608
21618
|
id: "date-picker-inline",
|
|
21609
21619
|
label: "To",
|
|
21620
|
+
error: false,
|
|
21621
|
+
helperText: null,
|
|
21610
21622
|
value: dataSetting.MuteNotificationEndTime,
|
|
21611
21623
|
onChange: handleDateChangeEnd,
|
|
21612
21624
|
KeyboardButtonProps: {
|
|
@@ -21621,6 +21633,8 @@ function NotificationsPage() {
|
|
|
21621
21633
|
margin: "normal",
|
|
21622
21634
|
id: "date-picker-inline",
|
|
21623
21635
|
label: "From",
|
|
21636
|
+
error: false,
|
|
21637
|
+
helperText: null,
|
|
21624
21638
|
value: dataSetting.MuteNotificationStartTime,
|
|
21625
21639
|
onChange: handleDateChangeStart,
|
|
21626
21640
|
KeyboardButtonProps: {
|
|
@@ -21633,6 +21647,8 @@ function NotificationsPage() {
|
|
|
21633
21647
|
margin: "normal",
|
|
21634
21648
|
id: "date-picker-inline",
|
|
21635
21649
|
label: "To",
|
|
21650
|
+
error: false,
|
|
21651
|
+
helperText: null,
|
|
21636
21652
|
style: {
|
|
21637
21653
|
marginLeft: "20px"
|
|
21638
21654
|
},
|