Skip to content

Commit

Permalink
refactor: Enable display of artefact icons in AddNewProjectCard and A…
Browse files Browse the repository at this point in the history
…reaCard components
  • Loading branch information
mourabitiziyad committed Aug 13, 2024
1 parent 2316d30 commit 605ff99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/refa/stages/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default async function Page({
artifacts={area.artefacts.map((artefact) => ({
id: artefact.artefact_id,
name: artefact.artefact_name,
displayIcons: true,
}))}
/>
</AreaSheet>
Expand Down
1 change: 0 additions & 1 deletion src/components/ProjectDetailAssessment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ export default function ProjectDetailAssessment({
<span className="inline-flex items-center gap-2">
<ArtifactDialog
id={artefact.artefact_id}
name={artefact.artefact_name}
>
<InfoCircledIcon className="min-h-5 min-w-5" />
</ArtifactDialog>
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/addNewProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default function AddNewProjectCard() {
setProjectName("");
setDescription("");
setSelectedParticipants([]);
// eslint-disable-next-line @typescript-eslint/no-floating-promises
refetchAssignedProjects();
router.push("/projects/" + data.id);
},
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/areaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { ScrollArea } from "./scroll-area";

export interface AreaProps {
id: string;
areaDBIndexId: number;
name: string;
visible?: boolean;
toggleVisibility?: () => void;
Expand Down Expand Up @@ -110,7 +109,9 @@ const AreaCard = React.forwardRef<HTMLDivElement, AreaProps>((area, ref) => {
description: "Your assessment has been saved successfully.",
variant: "default",
});
// eslint-disable-next-line @typescript-eslint/no-floating-promises
refetchAreaScore();
// eslint-disable-next-line @typescript-eslint/no-floating-promises
refetchAreaAssessment();
} catch (error) {
toast({
Expand Down

0 comments on commit 605ff99

Please sign in to comment.