Use environment variables from DB in published record data (#70)

* Publish environment variables of deployment

* Handle review changes

* Use dummy gray image for projects

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
2024-02-15 18:02:37 +05:30
committed by GitHub
co-authored by neeraj
parent c4ba59d97e
commit d29b29f161
11 changed files with 26 additions and 14 deletions
@@ -21,7 +21,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
return (
<div className="bg-white border border-gray-200 rounded-lg shadow">
<div className="flex gap-2 p-2 items-center">
<Avatar variant="square" src={project.icon} />
<Avatar variant="rounded" src={project.icon || '/gray.png'} />
<div className="grow">
<Link to={`projects/${project.id}`}>
<Typography>{project.name}</Typography>
@@ -87,7 +87,7 @@ const ProjectSearchBar = ({ onChange }: ProjectsSearchProps) => {
{...getItemProps({ item, index })}
>
<ListItemPrefix>
<Avatar src={item.icon} variant="square" />
<Avatar src={item.icon || '/gray.png'} variant="rounded" />
</ListItemPrefix>
<div>
<Typography variant="h6" color="blue-gray">