new function lock
This commit is contained in:
@@ -47,7 +47,12 @@ export default function Inscripcion({
|
||||
const month = day.getMonth();
|
||||
const today = day.getDate();
|
||||
|
||||
const minFecha = new Date(year, month, 1).toISOString().split("T")[0];
|
||||
let minMount = month
|
||||
if(!lock){
|
||||
minMount = month-1
|
||||
}
|
||||
|
||||
const minFecha = new Date(year, minMount, 1).toISOString().split("T")[0];
|
||||
const maxFecha = new Date(year, month, today).toISOString().split("T")[0];
|
||||
//restrict this month//
|
||||
|
||||
|
||||
@@ -23,21 +23,21 @@
|
||||
background-color: #cfcfcf;
|
||||
}
|
||||
|
||||
.buttonLock{
|
||||
.buttonLock {
|
||||
padding: 0.8rem;
|
||||
position: absolute;
|
||||
right: 100px;
|
||||
background-color: #d32f2f;
|
||||
}
|
||||
|
||||
.buttonOpenLock{
|
||||
.buttonOpenLock {
|
||||
padding: 0.8rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
right: 100px;
|
||||
background-color: #8cd32f;
|
||||
}
|
||||
|
||||
.buttonOpenLock:hover{
|
||||
.buttonOpenLock:hover {
|
||||
background-color: #78b32c;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,12 @@ export default function Receipt({ numAcount }: ReceiptsProps) {
|
||||
const month = day.getMonth();
|
||||
const today = day.getDate();
|
||||
|
||||
const minFecha = new Date(year, month, 1).toISOString().split("T")[0];
|
||||
let minMount = month
|
||||
if(!lock){
|
||||
minMount = month-1
|
||||
}
|
||||
|
||||
const minFecha = new Date(year, minMount, 1).toISOString().split("T")[0];
|
||||
const maxFecha = new Date(year, month, today).toISOString().split("T")[0];
|
||||
//restrict this month//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user