upd
This commit is contained in:
@@ -4,6 +4,7 @@ import TouchScreenIcon from "./icons/TouchScreenIcon";
|
||||
import VRIcon from "./icons/VRIcon";
|
||||
import MobileIcon from "./icons/MobileIcon";
|
||||
import IProject from "../types/IProject";
|
||||
import { format } from "date-fns";
|
||||
|
||||
function ProjectCard({
|
||||
name,
|
||||
@@ -11,7 +12,7 @@ function ProjectCard({
|
||||
city,
|
||||
image,
|
||||
stage = 6,
|
||||
releaseYear = 2023,
|
||||
releaseDate = format(new Date(), "yyyy-MM-dd"),
|
||||
devices = [],
|
||||
}: IProject) {
|
||||
const stagePercentage = Math.round((100 / 6) * stage);
|
||||
@@ -50,7 +51,7 @@ function ProjectCard({
|
||||
) : (
|
||||
<div className="bg-gradient py-2.5 px-4 rounded-full">
|
||||
<p className="font-gilroy font-medium leading-none">
|
||||
{releaseYear}
|
||||
{new Date(releaseDate).getFullYear()}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user