Skip to content

Commit

Permalink
fix: fixed default initials color
Browse files Browse the repository at this point in the history
  • Loading branch information
karthickthankyou committed Apr 24, 2022
1 parent 58ba61d commit d782341
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/components/molecules/Initials/Initials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface IInitialsProps {
| 'green'
| 'yellow'
| 'black'
| 'luxury'
| 'blackLuxury'
}

Expand All @@ -20,6 +21,7 @@ const sizeClasses = {
lg: 'w-12 h-12 text-lg',
}
const colorClasses = {
luxury: 'bg-luxury text-white',
blackLuxury: 'bg-black-luxury text-white',
black: 'bg-black text-white',
primary: 'bg-primary-500 text-white',
Expand All @@ -33,7 +35,7 @@ const Initials = ({
name,
className,
size = 'md',
color = 'blackLuxury',
color = 'luxury',
}: IInitialsProps) => (
<div
className={`flex items-center justify-center rounded-full ${className} ${colorClasses[color]} ${sizeClasses[size]}`}
Expand Down
12 changes: 4 additions & 8 deletions src/components/organisms/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,11 @@ const Navbar = () => {
{userRoles?.includes('agent') ? (
<SubMenuLink url='/homes/new'>Add new home</SubMenuLink>
) : (
<SubMenuLink url={`/user/${uid}`}>
Become agent
</SubMenuLink>
<SubMenuLink url='/user'>Become agent</SubMenuLink>
)}
<SubMenuLink url={`/user/${uid}`}>
<button type='button' onClick={() => dispatch(signout())}>
logout
</button>
</SubMenuLink>
<button type='button' onClick={() => dispatch(signout())}>
logout
</button>
</PopoverPanelMainMenu>
</PopoverParent>
)}
Expand Down

2 comments on commit d782341

@vercel
Copy link

@vercel vercel bot commented on d782341 Apr 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tostadanegra
Copy link

@Tostadanegra Tostadanegra commented on d782341 Oct 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, congratulations for your work!

I've been reviewing the code, but when it makes the call to become Agent it doesn't make the request to the database (Postgress); Could you send me the database script for creating tables and functions? Thank you! Greetings =)

Thanks you!

Please sign in to comment.