Skip to content
Snippets Groups Projects
Commit b275afea authored by lfr20's avatar lfr20
Browse files

builfing gamefication

parent 0b2de309
Branches
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ export default function ImgMediaCard(props) { ...@@ -61,7 +61,7 @@ export default function ImgMediaCard(props) {
<img <img
src={props.avatar ? props.avatar : noAvatar} src={props.avatar ? props.avatar : noAvatar}
alt="user avatar" alt="user avatar"
style={{ height: "100%", width: "100%", borderRadius: "50%" }} style={{ height: "90%", width: "90%", borderRadius: "50%", backgroundColor: 'white' }}
/> />
</AvatarDiv> </AvatarDiv>
</div> </div>
...@@ -201,7 +201,7 @@ const UserInfo = styled.div` ...@@ -201,7 +201,7 @@ const UserInfo = styled.div`
/*Rounded div to be used with avatar pic*/ /*Rounded div to be used with avatar pic*/
const AvatarDiv = styled.div` const AvatarDiv = styled.div`
border-radius: 100%; border-radius: 50%;
left: 50%; left: 50%;
position: absolute; position: absolute;
-webkit-transform: translateX(-50%); -webkit-transform: translateX(-50%);
...@@ -213,6 +213,9 @@ const AvatarDiv = styled.div` ...@@ -213,6 +213,9 @@ const AvatarDiv = styled.div`
flex-direction: row; flex-direction: row;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
background-image: url("https://www.filmstories.co.uk/wp-content/uploads/2020/01/doctor-strange-850x600.jpg");
background-repeat: no-repeat;
`; `;
/* gamification aspects */ /* gamification aspects */
......
...@@ -204,7 +204,7 @@ export default function Notification(props) { ...@@ -204,7 +204,7 @@ export default function Notification(props) {
</div> </div>
{ {
notifications.map((notification) => notifications.map((notification) =>
<ActivityListItem {/* <ActivityListItem
onMenuBar={true} onMenuBar={true}
avatar={notification.owner.avatar ? apiDomain + notification.owner.avatar : null} avatar={notification.owner.avatar ? apiDomain + notification.owner.avatar : null}
activity={notification.activity} activity={notification.activity}
...@@ -215,7 +215,7 @@ export default function Notification(props) { ...@@ -215,7 +215,7 @@ export default function Notification(props) {
ownerHref={'/perfil'} ownerHref={'/perfil'}
recipientName={notification.recipient.name} recipientName={notification.recipient.name}
recipientHref={getRecipientHref(notification)} recipientHref={getRecipientHref(notification)}
/> /> */}
) )
} }
<div style={{ padding: "0 15px", borderTop: "1px solid #dadada" }}> <div style={{ padding: "0 15px", borderTop: "1px solid #dadada" }}>
......
...@@ -80,7 +80,7 @@ export default function ItemStoreContainer(props) { ...@@ -80,7 +80,7 @@ export default function ItemStoreContainer(props) {
setIsLoading(false); setIsLoading(false);
} }
) )
}, []) }, [state.currentUser.id])
return ( return (
......
...@@ -49,8 +49,6 @@ const initialState = { ...@@ -49,8 +49,6 @@ const initialState = {
} }
} }
function reducer(state, action) { function reducer(state, action) {
switch (action.type){ switch (action.type){
case 'SAVE_SEARCH': case 'SAVE_SEARCH':
......
...@@ -17,7 +17,7 @@ You should have received a copy of the GNU Affero General Public License ...@@ -17,7 +17,7 @@ You should have received a copy of the GNU Affero General Public License
along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/
var apiDomain = 'https://api.portalmectest.c3sl.ufpr.br', var apiDomain = 'https://api.portalmechomologa.c3sl.ufpr.br',
apiVersion = 'v1', apiVersion = 'v1',
apiUrl = apiDomain + '/' + apiVersion; apiUrl = apiDomain + '/' + apiVersion;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment