diff --git a/components/versions/version-timeline.js b/components/versions/version-timeline.js
index 62235c8..7c272a9 100644
--- a/components/versions/version-timeline.js
+++ b/components/versions/version-timeline.js
@@ -116,6 +116,11 @@ function VersionCard({
const statusConfig = getStatusConfig(status)
const userDisplayName = version.user_created?.split('-')[0] || 'Système'
+ // Check if voting is disabled (after 3 days)
+ const createdAt = new Date(version.date_created)
+ const threeDaysAgo = new Date(Date.now() - (3 * 24 * 60 * 60 * 1000))
+ const isVoteDisabled = createdAt < threeDaysAgo
+
const handleCompareClick = async () => {
const comparisonData = await compareVersion({
accessToken,
@@ -171,12 +176,22 @@ function VersionCard({
-
+
+
+ {isVoteDisabled && (
+
+ )}
+
@@ -204,7 +219,12 @@ function VersionCard({
size='small'
variant='text'
/>
-
+