Skip to content
Snippets Groups Projects
Commit d184cd0e authored by Odin Aas's avatar Odin Aas :cry:
Browse files

swapped datepickers on overview for more clarity

parent 2fd128a5
Branches
No related tags found
1 merge request!90Dev branch
Pipeline #26914 passed
......@@ -135,7 +135,7 @@ function Overview() {
{/* DATE FROM PICKER */}
<label className='text-primary text-sm'>Date From</label>
<div className='flex'>
<DatePicker width={280} dates={startDate} setDate={setStartDate} allowedDate={new Date()}/>
<DatePicker width={280} dates={endDate} setDate={setEndDate} allowedDate={startDate} />
<div className='flex flex-col h-[40px] ml-[5px]'>
<Button className='h-[20px] w-[25px] rounded-none rounded-r-lg' variant="ghost" size="icon" onClick={_ => { //TODO: CLEAN UP THESE LATER ------------------------------- NO REALLY, THEY SUCK ATM
var date = new Date;
......@@ -162,7 +162,7 @@ function Overview() {
{/* DATE TO PICKER */}
<label className='text-primary text-sm'>Date To</label>
<div className='flex mb-[10px]'>
<DatePicker width={280} dates={endDate} setDate={setEndDate} allowedDate={startDate} />
<DatePicker width={280} dates={startDate} setDate={setStartDate} allowedDate={new Date()}/>
<div className='flex flex-col h-[40px] ml-[5px]'>
<Button className='h-[20px] w-[25px] rounded-none rounded-r-lg' variant="ghost" size="icon" onClick={e => { //TODO: CLEAN UP THESE LATER ------------------------------- NO REALLY, THEY SUCK ATM
var date = new Date; var sdate = startDate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment