Skip to content

Commit d152d8f

Browse files
author
Ravi Maurya
authored
Merge branch 'prod' into master
2 parents c375b3e + f624922 commit d152d8f

16 files changed

Lines changed: 12778 additions & 40 deletions

File tree

new_client/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_API=http://localhost:8000/api
1+
REACT_APP_API=https://www.communityofcoders.in/server/api

new_client/.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ node_modules
99
*.webp
1010
*.ttf
1111
*.jpeg
12-
*.pdf
12+
*.pdf
13+
yarn.lock

new_client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@
8787
"prettier": "2.2.1",
8888
"sass": "^1.49.7"
8989
}
90-
}
90+
}

new_client/public/coc.jpeg

15.6 KB
Loading

new_client/src/components/blogs/AddBlog.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function AddBlog(props) {
110110
})
111111
.catch((err) => console.log(err));
112112
}
113-
});
113+
}, [isEditPage, props.username]);
114114

115115
useEffect(() => {
116116
if (isEditPage) {

new_client/src/components/blogs/Blog.jsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,7 @@ const Blogs = (props) => {
118118
});
119119
};
120120

121-
let addBlogFab = (
122-
<Grid item style={{ position: "fixed", right: "50px", bottom: "25px" }}>
123-
<Tooltip title="Login Required" aria-label="add">
124-
<span>
125-
<Fab color="secondary" disabled>
126-
<AddIcon />
127-
</Fab>
128-
</span>
129-
</Tooltip>
130-
</Grid>
131-
);
121+
let addBlogFab;
132122

133123
if (props.isAuthenticated) {
134124
addBlogFab = (
@@ -148,7 +138,7 @@ const Blogs = (props) => {
148138

149139
if (!isLoading) {
150140
blogComponent = posts.map((article) => (
151-
<Grid item xs={6} key={article._id}>
141+
<Grid item xs={12} md={6} lg={6} key={article._id}>
152142
<Card>
153143
<CardHeader
154144
title={article.blogTitle}
@@ -214,7 +204,7 @@ const Blogs = (props) => {
214204

215205
return (
216206
<div className={classes.root}>
217-
<Container maxWidth="md">
207+
<Container maxWidth="lg">
218208
<Grid container spacing={3}>
219209
{blogComponent}
220210
{addBlogFab}

new_client/src/components/events/EventList.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Banner from "./Banner";
1515
import { isFuture } from "date-fns";
1616
import { TitleWithDivider } from "./EventPage";
1717
import useAuthenticatedAxios from "../Utilities/useAuthenticatedAxios.js";
18+
import "./EventList.css";
1819
import { format } from "date-fns";
1920

2021
function TabPanel(props) {
@@ -159,7 +160,7 @@ function EventList(props) {
159160
},
160161
{
161162
label: "Cancel",
162-
onClick: () => {},
163+
onClick: () => { },
163164
},
164165
],
165166
});
@@ -177,9 +178,9 @@ function EventList(props) {
177178
try {
178179
const url = !isUserRegistered
179180
? process.env.REACT_APP_API +
180-
`/events/register?eid=${eventId}&uid=${props.userID}`
181+
`/events/register?eid=${eventId}&uid=${props.userID}`
181182
: process.env.REACT_APP_API +
182-
`/events/unregister?eid=${eventId}&uid=${props.userID}`;
183+
`/events/unregister?eid=${eventId}&uid=${props.userID}`;
183184
const response = await authenticatedAxios.post(url);
184185
if (response.status === 200) {
185186
const isRegisteredTemp = {
@@ -278,7 +279,7 @@ function EventList(props) {
278279
</Tabs>
279280
</Grid>
280281
</Grid>
281-
282+
282283
<Grid item>
283284
{years.map((year, index) => (
284285
<TabPanel key={year} value={tabValue} index={index}>

new_client/src/components/glimpses/Glimpse.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Glimpse = () => {
3232
<Grid container spacing={4}>
3333
{isLoading ? <Spinner /> : null}
3434
{glimpses.map((glimpse) => (
35-
<Grid item xs={6} md={6} lg={4} key={glimpse._id}>
35+
<Grid item xs={12} md={6} lg={4} key={glimpse._id}>
3636
<IndividualGlimpse
3737
imgSrc={glimpse.preview}
3838
title={glimpse.eventName}

0 commit comments

Comments
 (0)