-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agenda App #5
base: main
Are you sure you want to change the base?
Agenda App #5
Conversation
feat: Initial setup & create contact logic
feat: Contact details page
feat: Edit contact & refactor
feat: Delete contact
feat: Search contacts
Please check my PR @mihaiandrei97 and @ivanms1. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incredible job!!
{contactFile ? ( | ||
<img | ||
width={80} | ||
height={80} | ||
className="h-14 w-14 rounded-full border border-violet-400 bg-slate-300 object-cover object-center md:h-20 md:w-20" | ||
src={contactFile} | ||
alt={contactName} | ||
/> | ||
) : ( | ||
<img | ||
width={80} | ||
height={80} | ||
className="h-14 w-14 rounded-full border border-violet-400 object-cover object-center md:h-20 md:w-20" | ||
src="../../public/avatar_default.png" | ||
alt="Default avatar" | ||
/> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{contactFile ? ( | |
<img | |
width={80} | |
height={80} | |
className="h-14 w-14 rounded-full border border-violet-400 bg-slate-300 object-cover object-center md:h-20 md:w-20" | |
src={contactFile} | |
alt={contactName} | |
/> | |
) : ( | |
<img | |
width={80} | |
height={80} | |
className="h-14 w-14 rounded-full border border-violet-400 object-cover object-center md:h-20 md:w-20" | |
src="../../public/avatar_default.png" | |
alt="Default avatar" | |
/> | |
)} | |
<img | |
width={80} | |
height={80} | |
className="h-14 w-14 rounded-full border border-violet-400 bg-slate-300 object-cover object-center md:h-20 md:w-20" | |
src={contactFile || "../../public/avatar_default.png"} | |
alt={contactName || Default avatar"} | |
/> |
<div className="border-b border-slate-200 py-2"> | ||
<p className="text-sm font-black">Mobile</p> | ||
<p className="text-xs text-slate-400"> | ||
{contactPhoneNumber} | ||
</p> | ||
</div> | ||
<div className="border-b border-slate-200 py-2"> | ||
<p className="text-sm font-black">Group</p> | ||
<p className="text-xs text-slate-400">{contactGroup}</p> | ||
</div> | ||
<div className="border-b border-slate-200 py-2"> | ||
<p className="text-sm font-black">Link numbers</p> | ||
<p className="text-xs text-slate-400">{contactGroup}</p> | ||
</div> | ||
<div className="border-b border-slate-200 py-2"> | ||
<p className="text-sm font-black">Add to favorites</p> | ||
</div> | ||
<div className="border-b border-slate-200 py-2"> | ||
<p className="text-sm font-black">Share my location</p> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if these have all the same styles you could make a static array and map through it
{currentContact.contactFile ? ( | ||
<img | ||
width={48} | ||
height={48} | ||
className="mr-4 h-12 w-12 rounded-full border border-violet-400 object-cover object-center md:h-14 md:w-14" | ||
src={currentContact?.contactFile} | ||
alt={currentContact?.contactName} | ||
/> | ||
) : ( | ||
<img | ||
width={48} | ||
height={48} | ||
className="mr-4 h-12 w-12 rounded-full border border-violet-400 object-cover object-center md:h-14 md:w-14" | ||
src="../../public/avatar_default.png" | ||
alt="Default avatar" | ||
/> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above img
<input | ||
className="w-full rounded-2xl border border-gray-200 bg-gray-50 px-4 py-2 text-sm text-black placeholder:text-sm placeholder:text-gray-300" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it will be nice to have an component that you can reuse
No description provided.