@elice/material-assignment 1.231227.0 → 1.240112.0-cloud.0
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.
- package/cjs/components/material-assignment/MaterialAssignment.js +13 -19
- package/cjs/components/material-assignment/MaterialAssignmentContent.js +99 -130
- package/cjs/components/material-assignment/MaterialAssignmentUploadModal.js +96 -129
- package/cjs/components/material-assignment/locales.js +2 -4
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.js +21 -26
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.styled.js +9 -21
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContent.js +320 -447
- package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +152 -211
- package/cjs/components/shared/MaterialAssignmentContainer.js +10 -14
- package/cjs/index.js +2 -4
- package/es/components/material-assignment/MaterialAssignment.js +8 -8
- package/es/components/material-assignment/MaterialAssignmentContent.js +65 -92
- package/es/components/material-assignment/MaterialAssignmentUploadModal.js +83 -111
- package/es/components/material-assignment/locales.js +2 -2
- package/es/components/material-assignment-admin/MaterialAssignmentAdmin.js +13 -13
- package/es/components/material-assignment-admin/MaterialAssignmentAdmin.styled.js +9 -15
- package/es/components/material-assignment-admin/MaterialAssignmentAdminContent.js +231 -353
- package/es/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +94 -148
- package/es/components/shared/MaterialAssignmentContainer.js +7 -6
- package/package.json +7 -7
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -388
- package/es/_virtual/_rollupPluginBabelHelpers.js +0 -377
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
5
|
var React = require('react');
|
|
7
6
|
var reactHookForm = require('react-hook-form');
|
|
8
7
|
var reactIntl = require('react-intl');
|
|
@@ -12,101 +11,71 @@ var designTokens = require('@elice/design-tokens');
|
|
|
12
11
|
var utils = require('@elice/utils');
|
|
13
12
|
var styled = require('styled-components');
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
19
|
-
|
|
20
|
-
var StyledAssignmentContentFiles = styled__default["default"](blocks.Files).withConfig({
|
|
14
|
+
const StyledAssignmentContentFiles = styled(blocks.Files).withConfig({
|
|
21
15
|
componentId: "sc-9bizrf-0"
|
|
22
16
|
})(["width:100%;.eb-files__choose-button{border-color:", ";background-color:", ";}"], designTokens.base.color.primary5, designTokens.base.color.primary5);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
const MaterialAssignmentUploadModal = ({
|
|
18
|
+
materialAssignment,
|
|
19
|
+
onClose,
|
|
20
|
+
onSubmitCallback
|
|
21
|
+
}) => {
|
|
22
|
+
const intl = reactIntl.useIntl();
|
|
23
|
+
const abortCtrl = React.useRef(new AbortController());
|
|
29
24
|
/** Select submission method */
|
|
30
|
-
|
|
31
|
-
_React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
|
|
32
|
-
assignmentMode = _React$useState2[0],
|
|
33
|
-
setAssignmentMode = _React$useState2[1];
|
|
25
|
+
const [assignmentMode, setAssignmentMode] = React.useState('attachment');
|
|
34
26
|
/** Check "Once you submit it, you cannot submit it again." */
|
|
35
|
-
|
|
36
|
-
_React$useState4 = _rollupPluginBabelHelpers.slicedToArray(_React$useState3, 2),
|
|
37
|
-
isAgreedSubmit = _React$useState4[0],
|
|
38
|
-
setAgreedSubmit = _React$useState4[1];
|
|
27
|
+
const [isAgreedSubmit, setAgreedSubmit] = React.useState(false);
|
|
39
28
|
/** Check if the submission time is past */
|
|
40
|
-
|
|
29
|
+
const isAssignmentClosed = Boolean(materialAssignment.closeDatetime < Date.now());
|
|
41
30
|
/** Check if it is possible to resubmit */
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
const isAssignmentResubmitEnabled = Boolean(materialAssignment.isResubmitEnabled);
|
|
32
|
+
const {
|
|
33
|
+
control,
|
|
34
|
+
formState,
|
|
35
|
+
handleSubmit,
|
|
36
|
+
reset
|
|
37
|
+
} = reactHookForm.useForm({
|
|
38
|
+
mode: 'onChange'
|
|
39
|
+
});
|
|
50
40
|
/**
|
|
51
41
|
* Submit assignment.
|
|
52
42
|
*/
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (!(_context.t0.name === 'AbortError')) {
|
|
80
|
-
_context.next = 12;
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
return _context.abrupt("return", blocks.Notification.error(intl.formatMessage({
|
|
84
|
-
id: 'materialAssignment.notification.submit.cancel'
|
|
85
|
-
})));
|
|
86
|
-
case 12:
|
|
87
|
-
blocks.Notification.error(intl.formatMessage({
|
|
88
|
-
id: 'materialAssignment.notification.submit.failure'
|
|
89
|
-
}));
|
|
90
|
-
case 13:
|
|
91
|
-
case "end":
|
|
92
|
-
return _context.stop();
|
|
93
|
-
}
|
|
94
|
-
}, _callee, null, [[0, 8]]);
|
|
95
|
-
}));
|
|
96
|
-
return function (_x) {
|
|
97
|
-
return _ref2.apply(this, arguments);
|
|
98
|
-
};
|
|
99
|
-
}());
|
|
43
|
+
const submitAssignment = handleSubmit(async data => {
|
|
44
|
+
var _a;
|
|
45
|
+
try {
|
|
46
|
+
await apiClient.postOrgMaterialAssignmentSubmissionAdd(Object.assign(Object.assign({}, data), {
|
|
47
|
+
materialAssignmentId: (_a = materialAssignment === null || materialAssignment === void 0 ? void 0 : materialAssignment.id) !== null && _a !== void 0 ? _a : 0
|
|
48
|
+
}), {
|
|
49
|
+
signal: abortCtrl.current.signal
|
|
50
|
+
});
|
|
51
|
+
onClose();
|
|
52
|
+
blocks.Notification.success(intl.formatMessage({
|
|
53
|
+
id: 'materialAssignment.notification.submit.success'
|
|
54
|
+
}));
|
|
55
|
+
if (typeof onSubmitCallback === 'function') {
|
|
56
|
+
onSubmitCallback();
|
|
57
|
+
}
|
|
58
|
+
} catch (error) {
|
|
59
|
+
if (error.name === 'AbortError') {
|
|
60
|
+
return blocks.Notification.error(intl.formatMessage({
|
|
61
|
+
id: 'materialAssignment.notification.submit.cancel'
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
blocks.Notification.error(intl.formatMessage({
|
|
65
|
+
id: 'materialAssignment.notification.submit.failure'
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
100
69
|
//
|
|
101
70
|
//
|
|
102
71
|
//
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return
|
|
72
|
+
React.useEffect(() => {
|
|
73
|
+
const _abortCtrl = abortCtrl.current;
|
|
74
|
+
return () => {
|
|
106
75
|
_abortCtrl.abort();
|
|
107
76
|
};
|
|
108
77
|
}, []);
|
|
109
|
-
return
|
|
78
|
+
return React.createElement(blocks.Modal, {
|
|
110
79
|
title: intl.formatMessage({
|
|
111
80
|
id: 'materialAssignment.modal.title'
|
|
112
81
|
}),
|
|
@@ -125,80 +94,78 @@ var MaterialAssignmentUploadModal = function MaterialAssignmentUploadModal(_ref)
|
|
|
125
94
|
onClick: onClose
|
|
126
95
|
}],
|
|
127
96
|
onHide: onClose
|
|
128
|
-
},
|
|
97
|
+
}, React.createElement(blocks.Alert, {
|
|
129
98
|
role: isAssignmentResubmitEnabled ? 'primary' : 'warning'
|
|
130
99
|
}, intl.formatMessage({
|
|
131
100
|
id: isAssignmentResubmitEnabled ? 'materialAssignment.alert.oftenSubmit' : 'materialAssignment.alert.onceSubmit'
|
|
132
|
-
})),
|
|
101
|
+
})), React.createElement(blocks.Vspace, {
|
|
133
102
|
height: 1.5
|
|
134
|
-
}),
|
|
103
|
+
}), React.createElement(blocks.Radio, {
|
|
135
104
|
purpleWhite: true,
|
|
136
105
|
borderRound: true,
|
|
137
106
|
value: assignmentMode,
|
|
138
|
-
onChange:
|
|
107
|
+
onChange: value => {
|
|
139
108
|
reset();
|
|
140
109
|
setAgreedSubmit(false);
|
|
141
110
|
setAssignmentMode(value);
|
|
142
111
|
}
|
|
143
|
-
},
|
|
112
|
+
}, React.createElement(blocks.RadioButton, {
|
|
144
113
|
value: "attachment"
|
|
145
114
|
}, intl.formatMessage({
|
|
146
115
|
id: 'materialAssignment.radio.option.attachment'
|
|
147
|
-
})),
|
|
116
|
+
})), React.createElement(blocks.RadioButton, {
|
|
148
117
|
value: "url"
|
|
149
118
|
}, intl.formatMessage({
|
|
150
119
|
id: 'materialAssignment.radio.option.url'
|
|
151
|
-
}))),
|
|
120
|
+
}))), React.createElement(blocks.Vspace, {
|
|
152
121
|
height: 1
|
|
153
|
-
}), assignmentMode === 'attachment' ?
|
|
122
|
+
}), assignmentMode === 'attachment' ? React.createElement(reactHookForm.Controller, {
|
|
154
123
|
control: control,
|
|
155
124
|
name: "assignmentFile",
|
|
156
125
|
rules: {
|
|
157
126
|
required: true
|
|
158
127
|
},
|
|
159
|
-
render:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
128
|
+
render: ({
|
|
129
|
+
field
|
|
130
|
+
}) => React.createElement(StyledAssignmentContentFiles, Object.assign({}, field, {
|
|
131
|
+
ref: null,
|
|
132
|
+
files: field.value ? [field.value] : undefined,
|
|
133
|
+
accept: "*",
|
|
134
|
+
maxCount: 1,
|
|
135
|
+
maxSize: 300,
|
|
136
|
+
disabled: isAssignmentClosed,
|
|
137
|
+
dropMessage: intl.formatMessage({
|
|
138
|
+
id: 'materialAssignment.attachment.dropMessage'
|
|
139
|
+
}),
|
|
140
|
+
buttonMessage: intl.formatMessage({
|
|
141
|
+
id: 'materialAssignment.attachment.button'
|
|
142
|
+
}),
|
|
143
|
+
maxSizeMessage: intl.formatMessage({
|
|
144
|
+
id: 'materialAssignment.attachment.maxSizeMessage'
|
|
145
|
+
}),
|
|
146
|
+
onChange: newFiles => {
|
|
147
|
+
if (Array.isArray(newFiles) && newFiles[0] instanceof File) {
|
|
148
|
+
field.onChange(newFiles[0]);
|
|
149
|
+
} else {
|
|
150
|
+
field.onChange(undefined);
|
|
183
151
|
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}) :
|
|
152
|
+
}
|
|
153
|
+
}))
|
|
154
|
+
}) : React.createElement(reactHookForm.Controller, {
|
|
187
155
|
control: control,
|
|
188
156
|
name: "assignmentUrl",
|
|
189
157
|
rules: {
|
|
190
158
|
required: true,
|
|
191
|
-
validate:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
});
|
|
195
|
-
}
|
|
159
|
+
validate: url => utils.validateUrl(url !== null && url !== void 0 ? url : '') ? true : intl.formatMessage({
|
|
160
|
+
id: 'materialAssignment.input.invalid'
|
|
161
|
+
})
|
|
196
162
|
},
|
|
197
|
-
render:
|
|
198
|
-
|
|
199
|
-
|
|
163
|
+
render: ({
|
|
164
|
+
field,
|
|
165
|
+
fieldState
|
|
166
|
+
}) => {
|
|
200
167
|
var _a;
|
|
201
|
-
return
|
|
168
|
+
return React.createElement(blocks.Input, Object.assign({}, field, {
|
|
202
169
|
width: "full",
|
|
203
170
|
size: "small",
|
|
204
171
|
placeholder: "http(s)://",
|
|
@@ -206,17 +173,17 @@ var MaterialAssignmentUploadModal = function MaterialAssignmentUploadModal(_ref)
|
|
|
206
173
|
invalidText: (_a = fieldState.error) === null || _a === void 0 ? void 0 : _a.message
|
|
207
174
|
}));
|
|
208
175
|
}
|
|
209
|
-
}), isAssignmentResubmitEnabled ? null :
|
|
176
|
+
}), isAssignmentResubmitEnabled ? null : React.createElement(React.Fragment, null, React.createElement(blocks.Vspace, {
|
|
210
177
|
height: 1
|
|
211
|
-
}),
|
|
178
|
+
}), React.createElement(blocks.Checkbox, {
|
|
212
179
|
size: "small",
|
|
213
180
|
value: isAgreedSubmit,
|
|
214
181
|
onChange: setAgreedSubmit
|
|
215
|
-
},
|
|
182
|
+
}, React.createElement(blocks.Text, {
|
|
216
183
|
size: "small"
|
|
217
184
|
}, intl.formatMessage({
|
|
218
185
|
id: 'materialAssignment.attachment.checkbox.onceSubmit'
|
|
219
186
|
})))));
|
|
220
187
|
};
|
|
221
188
|
|
|
222
|
-
exports
|
|
189
|
+
exports.default = MaterialAssignmentUploadModal;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var en = {
|
|
3
|
+
const en = {
|
|
6
4
|
'materialAssignment.button.upload': 'Upload assignment',
|
|
7
5
|
'materialAssignment.error': 'Failed to fetch assignment',
|
|
8
6
|
'materialAssignment.status.noSubmitted': 'No submitted',
|
|
@@ -40,7 +38,7 @@ var en = {
|
|
|
40
38
|
'materialAssignment.attachment.checkbox.onceSubmit': 'I have checked all the circumstances and agree to submit the assignment.',
|
|
41
39
|
'materialAssignment.input.invalid': 'The URL is not of a valid format.'
|
|
42
40
|
};
|
|
43
|
-
|
|
41
|
+
const ko = {
|
|
44
42
|
'materialAssignment.button.upload': '과제 업로드',
|
|
45
43
|
'materialAssignment.error': '과제를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.',
|
|
46
44
|
'materialAssignment.status.noSubmitted': '미제출',
|
|
@@ -13,51 +13,46 @@ var MaterialAssignmentAdminContent = require('./MaterialAssignmentAdminContent.j
|
|
|
13
13
|
var MaterialAssignmentAdminContentTa = require('./MaterialAssignmentAdminContentTa.js');
|
|
14
14
|
var MaterialAssignmentAdmin_styled = require('./MaterialAssignmentAdmin.styled.js');
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
userId = _ref.userId,
|
|
27
|
-
adminUserId = _ref.adminUserId,
|
|
28
|
-
courseRole = _ref.courseRole,
|
|
29
|
-
updateMaterialUserBrowserResponse = _ref.updateMaterialUserBrowserResponse;
|
|
30
|
-
var prefixCls = 'em-material-assignment-admin';
|
|
16
|
+
const MaterialAssignmentAdmin = React.forwardRef(({
|
|
17
|
+
locale = 'en',
|
|
18
|
+
className,
|
|
19
|
+
materialAssignmentId,
|
|
20
|
+
userId,
|
|
21
|
+
adminUserId,
|
|
22
|
+
courseRole,
|
|
23
|
+
updateMaterialUserBrowserResponse
|
|
24
|
+
}, ref) => {
|
|
25
|
+
const prefixCls = 'em-material-assignment-admin';
|
|
31
26
|
// TODO: initialize in custom hook or withMaterial hoc.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
const isReady = materialSharedUtils.useMaterialConfigApiClientUpdate(apiClient.config.init);
|
|
28
|
+
const isCourseRoleAboveTa = courseRole > types.enums.CourseRole.TA;
|
|
29
|
+
const renderContent = () => {
|
|
35
30
|
if (!isReady) {
|
|
36
|
-
return
|
|
31
|
+
return React.createElement(blocks.Flex, {
|
|
37
32
|
align: "center",
|
|
38
33
|
justify: "center",
|
|
39
34
|
width: "100%",
|
|
40
35
|
height: "100%"
|
|
41
|
-
},
|
|
36
|
+
}, React.createElement(blocks.Spinner, null));
|
|
42
37
|
}
|
|
43
|
-
return isCourseRoleAboveTa ?
|
|
38
|
+
return isCourseRoleAboveTa ? React.createElement(MaterialAssignmentAdminContent.default, {
|
|
44
39
|
ref: ref,
|
|
45
40
|
userId: userId,
|
|
46
41
|
adminUserId: adminUserId,
|
|
47
42
|
materialAssignmentId: materialAssignmentId,
|
|
48
43
|
updateMaterialUserBrowserResponse: updateMaterialUserBrowserResponse
|
|
49
|
-
}) :
|
|
44
|
+
}) : React.createElement(MaterialAssignmentAdminContentTa.default, {
|
|
50
45
|
userId: userId,
|
|
51
46
|
adminUserId: adminUserId,
|
|
52
47
|
materialAssignmentId: materialAssignmentId
|
|
53
48
|
});
|
|
54
49
|
};
|
|
55
|
-
return
|
|
56
|
-
className:
|
|
57
|
-
},
|
|
50
|
+
return React.createElement(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminContainer, {
|
|
51
|
+
className: classnames(prefixCls, className)
|
|
52
|
+
}, React.createElement(reactIntl.IntlProvider, {
|
|
58
53
|
locale: locale,
|
|
59
54
|
defaultLocale: "en"
|
|
60
55
|
}, renderContent()));
|
|
61
56
|
});
|
|
62
57
|
|
|
63
|
-
exports
|
|
58
|
+
exports.default = MaterialAssignmentAdmin;
|
|
@@ -1,42 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var blocks = require('@elice/blocks');
|
|
6
4
|
var designTokens = require('@elice/design-tokens');
|
|
7
5
|
var styled = require('styled-components');
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
-
|
|
13
|
-
var StyledMaterialAssignmentAdminContainer = styled__default["default"].div.withConfig({
|
|
7
|
+
const StyledMaterialAssignmentAdminContainer = styled.div.withConfig({
|
|
14
8
|
componentId: "sc-1czd3o6-0"
|
|
15
9
|
})(["display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:", ";"], designTokens.base.color.navy9);
|
|
16
|
-
|
|
10
|
+
const StyledMaterialAssignmentAdminHeader = styled(blocks.Flex).withConfig({
|
|
17
11
|
componentId: "sc-1czd3o6-1"
|
|
18
12
|
})(["background-color:", ";"], designTokens.base.color.navy8);
|
|
19
|
-
|
|
13
|
+
const StyledMaterialAssignmentAdminHeaderCell = styled.div.withConfig({
|
|
20
14
|
componentId: "sc-1czd3o6-2"
|
|
21
15
|
})(["display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding:0 1.5rem;height:100%;border-right:1px solid ", ";&:last-of-type{border-right:none;}"], designTokens.base.color.gray6);
|
|
22
|
-
|
|
16
|
+
const StyledMaterialAssignmentAdminGradeWrapper = styled(blocks.Flex).withConfig({
|
|
23
17
|
componentId: "sc-1czd3o6-3"
|
|
24
18
|
})(["background-color:", ";width:100%;padding:0 1.5rem;height:4.5rem;border:1px solid ", ";border-radius:0.5rem;"], designTokens.base.color.navy7, designTokens.base.color.navy6);
|
|
25
|
-
|
|
19
|
+
const StyledMaterialAssignmentAdminTextareaWrapper = styled.div.withConfig({
|
|
26
20
|
componentId: "sc-1czd3o6-4"
|
|
27
21
|
})(["background-color:", ";"], designTokens.base.color.gray2);
|
|
28
|
-
|
|
22
|
+
const StyledMaterialAssignmentAdminManualScoreEditButtonWrapper = styled.div.withConfig({
|
|
29
23
|
componentId: "sc-1czd3o6-5"
|
|
30
|
-
})(["cursor:", ";opacity:", ";"],
|
|
31
|
-
|
|
32
|
-
}, function (props) {
|
|
33
|
-
return props.disabled ? 0.5 : 1;
|
|
34
|
-
});
|
|
35
|
-
var StyledMaterialAssignmentAdminManualScoreEditButton = styled__default["default"](blocks.Text).withConfig({
|
|
24
|
+
})(["cursor:", ";opacity:", ";"], props => props.disabled ? 'not-allowed' : 'pointer', props => props.disabled ? 0.5 : 1);
|
|
25
|
+
const StyledMaterialAssignmentAdminManualScoreEditButton = styled(blocks.Text).withConfig({
|
|
36
26
|
componentId: "sc-1czd3o6-6"
|
|
37
|
-
})(["pointer-events:", ";"],
|
|
38
|
-
return props.disabled ? 'none' : 'auto';
|
|
39
|
-
});
|
|
27
|
+
})(["pointer-events:", ";"], props => props.disabled ? 'none' : 'auto');
|
|
40
28
|
|
|
41
29
|
exports.StyledMaterialAssignmentAdminContainer = StyledMaterialAssignmentAdminContainer;
|
|
42
30
|
exports.StyledMaterialAssignmentAdminGradeWrapper = StyledMaterialAssignmentAdminGradeWrapper;
|