{
))}
{props.content.length === 0 && (
-
- {`${props.name} doesn't belong to any allegiance's yet.`}
-
-
+
+
+ {`${props.name} belong to any allegiance's yet.`}
+ {/* */}
+
+
)}
)
}
const LogoHolder = styled.div`
- padding: 5px
- width: 100%;
display: flex;
- justify-content: center;
flex-wrap: nowrap;
+ align-items: center;
overflow-x: auto;
- margin-left: 1%;
- margin-bottom: 20px;
+ background-color: white;
&::-webkit-scrollbar {
display: none;
}
+ .appear {
+ }
+ .disappear {
+ display: none;
+ }
`
const Join = styled.div`
display: flex;
- flex-direction: column;
+ flex-wrap: column;
align-items: center;
font-weight: bold;
letter-spacing: adjusting;
font-size: 2rem;
`
-const Nickname = styled.p`
- font-size: 0.8rem;
- font-weight: bold;
- margin-top: 10%;
-`
-
const GroupLogo = styled.img`
border-color: black;
object-fit: cover;
@@ -85,4 +97,9 @@ const GroupLogo = styled.img`
box-shadow: 3px 4px 8px 3px rgba(0, 0, 0, 0.2);
`
+const Nickname = styled.p`
+ font-size: 0.8rem;
+ font-weight: bold;
+ margin-top: 10%;
+`
export default withRouter(ProfileAllegiances)
diff --git a/src/components/replies/ReplyContainer.js b/src/components/replies/ReplyContainer.js
index 8778567..eae0893 100644
--- a/src/components/replies/ReplyContainer.js
+++ b/src/components/replies/ReplyContainer.js
@@ -181,7 +181,7 @@ const ReplyCardsContainer = styled.div`
font-size: 1.4rem;
max-width: 800px;
@media (max-width: 500px) {
- min-width: 350px;
+ min-width: 150px;
width: 95%;
}
`
diff --git a/src/reducers/groupReducer.js b/src/reducers/groupReducer.js
index e69bbc8..6424445 100644
--- a/src/reducers/groupReducer.js
+++ b/src/reducers/groupReducer.js
@@ -1,5 +1,9 @@
import * as types from 'actions/actionTypes'
-
+import {
+ CREATE_POST_SUCCESS,
+ CREATE_POST_FAILURE,
+ DELETE_POST_SUCCESS,
+} from 'components/posts/store/postTypes'
const initialState = {
posts: [],
arePostsLoading: false,
@@ -50,12 +54,12 @@ export const groupReducer = (state = initialState, action) => {
arePostsLoading: false,
}
case types.RECEIVE_POST_SUCCESS:
- case types.CREATE_POST_SUCCESS:
+ case CREATE_POST_SUCCESS:
return {
...state,
posts: [...state.posts, action.payload],
}
- case types.CREATE_POST_FAILURE:
+ case CREATE_POST_FAILURE:
return {
...state,
error: action.payload,
@@ -159,7 +163,7 @@ export const groupReducer = (state = initialState, action) => {
allegiances: action.payload.allegiances,
reqs: action.payload.reqs,
}
- case types.DELETE_POST_SUCCESS:
+ case DELETE_POST_SUCCESS:
console.log(action.payload)
return {
...state,