Skip to content

Commit d3629cf

Browse files
committed
Add Stable UI
1 parent 899c85d commit d3629cf

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
--health-retries=5
2626
2727
env:
28-
SECRET_KEY: dummykey
29-
DEBUG: true
28+
DJANGO_SECRET_KEY: dummykey
29+
DJANGO_DEBUG: true
3030
DB_NAME: test_db
3131
DB_USER: root
3232
DB_PASSWORD: root

Frontend/src/Components/Sidebar.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ function Sidebar({
142142
InputLabelProps={{
143143
shrink: true,
144144
}}
145+
inputProps={{
146+
style: { cursor: 'pointer' }
147+
}}
148+
onClick={(e) => {
149+
// On desktop, trigger the native date picker
150+
if (!isMobile) {
151+
(e.target as HTMLInputElement).showPicker?.();
152+
}
153+
}}
145154
/>
146155
</Box>
147156

Frontend/src/Pages/Tasks.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,15 @@ export function Tasks() {
588588
InputLabelProps={{ shrink: true }}
589589
value={formData.due_date}
590590
onChange={(e) => setFormData({ ...formData, due_date: e.target.value })}
591+
inputProps={{
592+
style: { cursor: 'pointer' }
593+
}}
594+
onClick={(e) => {
595+
// On desktop, trigger the native date picker
596+
if (!isMobile) {
597+
(e.target as HTMLInputElement).showPicker?.();
598+
}
599+
}}
591600
/>
592601
<TextField
593602
label="Category"
@@ -651,6 +660,15 @@ export function Tasks() {
651660
InputLabelProps={{ shrink: true }}
652661
value={formData.due_date}
653662
onChange={(e) => setFormData({ ...formData, due_date: e.target.value })}
663+
inputProps={{
664+
style: { cursor: 'pointer' }
665+
}}
666+
onClick={(e) => {
667+
// On desktop, trigger the native date picker
668+
if (!isMobile) {
669+
(e.target as HTMLInputElement).showPicker?.();
670+
}
671+
}}
654672
/>
655673
<TextField
656674
label="Category"
338 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)