♻️(react) make datefield inputs reusable

Refactor the date field input to ensure the inclusion of two identical
and reusable date field inputs in the future DateRangePicker component.
By factoring out the common logic and structure, we can create a more efficient
and easily reusable component for selecting date ranges.
This commit is contained in:
Lebaud Antoine
2023-06-16 09:46:01 +02:00
committed by aleb_the_flash
parent 3631367e14
commit d16ada2825
2 changed files with 32 additions and 4 deletions

View File

@@ -39,6 +39,17 @@
user-select: none;
min-width: 0;
&--collapsed {
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
width: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute
}
&--clickable {
cursor: pointer;
}