Compare commits
19 Commits
revert-nod
...
jawayria/n
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32a100ea41 | ||
|
|
876211388a | ||
|
|
c409514766 | ||
|
|
c0f675f41a | ||
|
|
7f49543c37 | ||
|
|
1d1b7eb94b | ||
|
|
a059c50780 | ||
|
|
cf83775052 | ||
|
|
6b98ef6506 | ||
|
|
45b3dd79f3 | ||
|
|
86f7a07ded | ||
|
|
4be926d788 | ||
|
|
e426892bb2 | ||
|
|
80c3fee3da | ||
|
|
43c03ca2c0 | ||
|
|
6bd1561bcb | ||
|
|
1f119c1bbb | ||
|
|
8fc067e64f | ||
|
|
428f2d2311 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -33,7 +33,5 @@ jobs:
|
||||
run: npm run build
|
||||
- name: i18n_extract
|
||||
run: npm run i18n_extract
|
||||
- name: is-es5
|
||||
run: npm run is-es5
|
||||
- name: Coverage
|
||||
uses: codecov/codecov-action@v2
|
||||
|
||||
26420
package-lock.json
generated
26420
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@
|
||||
"yup": "0.31.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@edx/frontend-build": "9.1.2",
|
||||
"@edx/frontend-build": "9.1.4",
|
||||
"@testing-library/jest-dom": "5.16.2",
|
||||
"@testing-library/react": "12.1.4",
|
||||
"@testing-library/user-event": "13.5.0",
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function DiscussionContent() {
|
||||
useContainerSizeForParent(refContainer);
|
||||
|
||||
return (
|
||||
<div className="d-flex bg-light-300 flex-column w-75 w-xs-100 w-xl-75 align-items-center h-100 overflow-auto">
|
||||
<div className="d-flex bg-light-400 flex-column w-75 w-xs-100 w-xl-75 align-items-center h-100 overflow-auto">
|
||||
<div className="d-flex flex-column w-100 mw-xl" ref={refContainer}>
|
||||
{postEditorVisible ? (
|
||||
<Route path={Routes.POSTS.NEW_POST}>
|
||||
|
||||
@@ -16,7 +16,7 @@ function EmptyPage({
|
||||
}) {
|
||||
const containerClasses = classNames(
|
||||
'justify-content-center align-items-center d-flex w-100 flex-column pt-5',
|
||||
{ 'bg-light-300': !fullWidth },
|
||||
{ 'bg-light-400': !fullWidth },
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
@@ -374,19 +374,6 @@ function PostEditor({
|
||||
{intl.formatMessage(messages.followPost)}
|
||||
</Form.Checkbox>
|
||||
</Form.Group>
|
||||
{allowAnonymous && (
|
||||
<Form.Group>
|
||||
<Form.Checkbox
|
||||
name="anonymous"
|
||||
checked={values.anonymous}
|
||||
onChange={handleChange}
|
||||
onBlur={handleBlur}
|
||||
className="mr-4"
|
||||
>
|
||||
{intl.formatMessage(messages.anonymousPost)}
|
||||
</Form.Checkbox>
|
||||
</Form.Group>
|
||||
)}
|
||||
{allowAnonymousToPeers
|
||||
&& (
|
||||
<Form.Group>
|
||||
|
||||
@@ -117,15 +117,13 @@ describe('PostEditor', () => {
|
||||
.toHaveLength(3);
|
||||
|
||||
expect(screen.queryByText('cohort', { exact: false }))
|
||||
.not
|
||||
.toBeInTheDocument();
|
||||
.not.toBeInTheDocument();
|
||||
if (allowAnonymous) {
|
||||
expect(screen.queryByText('Post anonymously'))
|
||||
.toBeInTheDocument();
|
||||
.not.toBeInTheDocument();
|
||||
} else {
|
||||
expect(screen.queryByText('Post anonymously'))
|
||||
.not
|
||||
.toBeInTheDocument();
|
||||
.not.toBeInTheDocument();
|
||||
}
|
||||
if (allowAnonymousToPeers) {
|
||||
expect(screen.queryByText('Post anonymously to peers'))
|
||||
|
||||
Reference in New Issue
Block a user