new sidebar and functionality to it, fixed problems with the style/cleanup #20
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GamBar/AmberCamp!20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "AC-32-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want some changes but most are general questions, please write your replies.
@ -19,16 +20,12 @@ export default function MediaSelect({ name, rules = {}, styles, label, ...rest }alt=""Edit does nothing, please comment out
@ -0,0 +1,7 @@export default function Icon({ icon, styles, ...rest }) {can you pass
{...rest}here so we dont have action we can just pass it onClick, onHover and whatever else we could need? Also fix all icons like thatignored
@ -0,0 +76,4 @@</progress>{(image?.mimetype?.includes('image') || image?.mimetype?.includes('video')) && image?.key && (<img src={`http://localhost:3030/recourse/${image?.key}?size=250`} />)}Have you checked the console? React sometimes throws errors when there is no alt element, even if its empty
@ -0,0 +20,4 @@placeholder="Search"/>{children}Is there a way to avoid this?
@ -0,0 +1,41 @@import { useState } from 'react';Lets avoid inline ternaries and lets keep consistent with the rest of the code, see how its done at https://github.com/GameBear64/AmberCamp/pull/20/files#diff-85cac127b49b831531147573ef689fc5965cf32fa1dd9c2d1a5bed6d7c99f559R48-R52
@ -0,0 +7,4 @@export default function Pending({ incoming, outgoing, type }) {const [pendingType, setPendingType] = useState(type);const btns = () => (Lets take this out to a seperate component
@ -0,0 +1,99 @@import { useEffect, useState } from 'react';Where did "updateDescription" go? Well whatever you can put it back but inside the component since thats the only place its used
@ -0,0 +75,4 @@backgroundImage: userInfo?.background ? `url('http://localhost:3030/recourse/${userInfo?.background}')` : '',}}><section className="relative mx-4 flex flex-row pt-28 "><div className="relative mx-2.5 inline-block h-44 overflow-hidden rounded-[50%] border-4 border-solid border-white shadow-md">Does this return undefined or does it throw an error when
userInfo?.createdAtis missing@ -0,0 +61,4 @@<div className="float-left mb-4 flex w-full flex-wrap gap-2 font-semibold ">{userInfo.status == 'Strangers' && (<button className="btn-blue" onClick={add}>Add friendOh no.. I hope we dont end up with 27 duferent button color classes
@ -0,0 +12,4 @@import { getUser } from './endpoints';export default function NotesSection({ id, userInfo, setUserInfo }) {const [editNote, setEditNote] = useState('');refetch seemed ok, that way we dont pass around
setUserInfo, also are we certain we only do setUserInfo after we get the user?@ -0,0 +75,4 @@backgroundImage: userInfo?.background ? `url('http://localhost:3030/recourse/${userInfo?.background}')` : '',}}><section className="relative mx-4 flex flex-row pt-28 "><div className="relative mx-2.5 inline-block h-44 overflow-hidden rounded-[50%] border-4 border-solid border-white shadow-md">this will be fixed later, when i start to work on the mobile version. Please, ignore it for now.
@ -0,0 +12,4 @@import { getUser } from './endpoints';export default function NotesSection({ id, userInfo, setUserInfo }) {const [editNote, setEditNote] = useState('');refetch didn't work, that's why i had to do it this way.
@ -0,0 +76,4 @@</progress>{(image?.mimetype?.includes('image') || image?.mimetype?.includes('video')) && image?.key && (<img src={`http://localhost:3030/recourse/${image?.key}?size=250`} />)}No errors here, i'll put it back.
@ -0,0 +76,4 @@</progress>{(image?.mimetype?.includes('image') || image?.mimetype?.includes('video')) && image?.key && (<img src={`http://localhost:3030/recourse/${image?.key}?size=250`} />)}if no errors, no neec to put it back, thanks for checking
Good job