mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-19 13:08:23 +02:00
Update how the current year is displayed in the publicities section
Remove defaultValue and placeholder for the year select component in Publicities.tsx. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/0gylnen
This commit is contained in:
1 parent
393ee4a231
commit
cbf2eed63a
1 file changed
+1
-2
@@ -286,10 +286,9 @@ export default function Publicities() {
|
|||||||
<Select
|
<Select
|
||||||
value={selectedYear.toString()}
|
value={selectedYear.toString()}
|
||||||
onValueChange={(value) => setSelectedYear(parseInt(value))}
|
onValueChange={(value) => setSelectedYear(parseInt(value))}
|
||||||
defaultValue={new Date().getFullYear().toString()}
|
|
||||||
>
|
>
|
||||||
<SelectTrigger className="w-32">
|
<SelectTrigger className="w-32">
|
||||||
<SelectValue placeholder={selectedYear.toString()} />
|
<SelectValue />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
{yearOptions.map((year) => (
|
{yearOptions.map((year) => (
|
||||||
|
|||||||
Reference in new issue
Block a user