mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
join.tsx (#58)
This commit is contained in:
parent
0cc03dba0b
commit
2e9fcb8d8a
2 changed files with 204 additions and 147 deletions
248
pnpm-lock.yaml
248
pnpm-lock.yaml
|
|
@ -7352,34 +7352,34 @@ snapshots:
|
|||
dependencies:
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/link': 3.7.4(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/breadcrumbs': 3.7.5(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-aria/button@3.9.5(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/toggle': 3.7.7(react@18.3.1)
|
||||
'@react-types/button': 3.9.6(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-aria/calendar@3.5.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@internationalized/date': 3.5.5
|
||||
'@react-aria/i18n': 3.11.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/live-announcer': 3.3.4
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/calendar': 3.5.1(react@18.3.1)
|
||||
'@react-types/button': 3.9.4(react@18.3.1)
|
||||
'@react-types/calendar': 3.4.6(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/button': 3.9.6(react@18.3.1)
|
||||
'@react-types/calendar': 3.4.9(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
|
@ -7387,34 +7387,34 @@ snapshots:
|
|||
'@react-aria/checkbox@3.14.3(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/form': 3.0.8(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/toggle': 3.10.7(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/checkbox': 3.6.5(react@18.3.1)
|
||||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-stately/toggle': 3.7.4(react@18.3.1)
|
||||
'@react-types/checkbox': 3.8.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-stately/toggle': 3.7.7(react@18.3.1)
|
||||
'@react-types/checkbox': 3.8.3(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-aria/combobox@3.9.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/i18n': 3.11.1(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/listbox': 3.13.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/live-announcer': 3.3.4
|
||||
'@react-aria/menu': 3.15.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/overlays': 3.23.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/selection': 3.19.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/textfield': 3.14.8(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/collections': 3.10.9(react@18.3.1)
|
||||
'@react-stately/combobox': 3.8.4(react@18.3.1)
|
||||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-types/button': 3.9.6(react@18.3.1)
|
||||
'@react-types/combobox': 3.11.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
|
@ -7426,27 +7426,27 @@ snapshots:
|
|||
'@internationalized/string': 3.2.3
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/form': 3.0.8(react@18.3.1)
|
||||
'@react-aria/i18n': 3.11.1(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/spinbutton': 3.6.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/datepicker': 3.9.4(react@18.3.1)
|
||||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-types/button': 3.9.6(react@18.3.1)
|
||||
'@react-types/calendar': 3.4.9(react@18.3.1)
|
||||
'@react-types/datepicker': 3.7.4(react@18.3.1)
|
||||
'@react-types/dialog': 3.5.12(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
||||
'@react-aria/dialog@3.5.14(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/overlays': 3.22.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/overlays': 3.23.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/dialog': 3.5.12(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
|
|
@ -7455,9 +7455,9 @@ snapshots:
|
|||
|
||||
'@react-aria/focus@3.17.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
clsx: 2.1.1
|
||||
react: 18.3.1
|
||||
|
|
@ -7473,10 +7473,10 @@ snapshots:
|
|||
|
||||
'@react-aria/form@3.0.5(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7514,7 +7514,7 @@ snapshots:
|
|||
'@internationalized/number': 3.5.3
|
||||
'@internationalized/string': 3.2.3
|
||||
'@react-aria/ssr': 3.9.5(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
|
@ -7534,8 +7534,8 @@ snapshots:
|
|||
'@react-aria/interactions@3.21.3(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/ssr': 3.9.5(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7556,17 +7556,17 @@ snapshots:
|
|||
|
||||
'@react-aria/label@3.7.8(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-aria/link@3.7.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-types/link': 3.5.5(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/link': 3.5.7(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
|
@ -7583,14 +7583,14 @@ snapshots:
|
|||
|
||||
'@react-aria/listbox@3.12.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/selection': 3.19.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/collections': 3.10.9(react@18.3.1)
|
||||
'@react-stately/list': 3.10.5(react@18.3.1)
|
||||
'@react-stately/list': 3.10.8(react@18.3.1)
|
||||
'@react-types/listbox': 3.5.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
|
@ -7615,18 +7615,18 @@ snapshots:
|
|||
|
||||
'@react-aria/menu@3.14.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/overlays': 3.23.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/selection': 3.19.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/collections': 3.10.9(react@18.3.1)
|
||||
'@react-stately/menu': 3.7.1(react@18.3.1)
|
||||
'@react-stately/tree': 3.8.1(react@18.3.1)
|
||||
'@react-stately/menu': 3.8.2(react@18.3.1)
|
||||
'@react-stately/tree': 3.8.4(react@18.3.1)
|
||||
'@react-types/button': 3.9.6(react@18.3.1)
|
||||
'@react-types/menu': 3.9.9(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/menu': 3.9.11(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
|
@ -7651,15 +7651,15 @@ snapshots:
|
|||
|
||||
'@react-aria/overlays@3.22.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/ssr': 3.9.5(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/visually-hidden': 3.8.12(react@18.3.1)
|
||||
'@react-stately/overlays': 3.6.7(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-aria/visually-hidden': 3.8.15(react@18.3.1)
|
||||
'@react-stately/overlays': 3.6.10(react@18.3.1)
|
||||
'@react-types/button': 3.9.6(react@18.3.1)
|
||||
'@react-types/overlays': 3.8.7(react@18.3.1)
|
||||
'@react-types/overlays': 3.8.9(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
|
@ -7683,9 +7683,9 @@ snapshots:
|
|||
|
||||
'@react-aria/progress@3.4.13(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/i18n': 3.11.1(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/progress': 3.5.4(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
|
|
@ -7693,26 +7693,26 @@ snapshots:
|
|||
|
||||
'@react-aria/radio@3.10.4(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/form': 3.0.8(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/radio': 3.10.4(react@18.3.1)
|
||||
'@react-types/radio': 3.8.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-aria/selection@3.18.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/i18n': 3.11.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/selection': 3.16.2(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
|
|
@ -7731,11 +7731,11 @@ snapshots:
|
|||
|
||||
'@react-aria/slider@3.7.8(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/i18n': 3.11.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/slider': 3.5.4(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/slider': 3.7.5(react@18.3.1)
|
||||
|
|
@ -7766,26 +7766,26 @@ snapshots:
|
|||
'@react-aria/switch@3.6.4(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/toggle': 3.10.7(react@18.3.1)
|
||||
'@react-stately/toggle': 3.7.4(react@18.3.1)
|
||||
'@react-stately/toggle': 3.7.7(react@18.3.1)
|
||||
'@react-types/switch': 3.5.5(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-aria/table@3.14.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/grid': 3.10.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/live-announcer': 3.3.4
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/visually-hidden': 3.8.12(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-aria/visually-hidden': 3.8.15(react@18.3.1)
|
||||
'@react-stately/collections': 3.10.9(react@18.3.1)
|
||||
'@react-stately/flags': 3.0.3
|
||||
'@react-stately/table': 3.11.8(react@18.3.1)
|
||||
'@react-stately/virtualizer': 3.7.1(react@18.3.1)
|
||||
'@react-types/checkbox': 3.8.3(react@18.3.1)
|
||||
'@react-types/grid': 3.2.6(react@18.3.1)
|
||||
'@react-types/grid': 3.2.8(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/table': 3.9.5(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
|
|
@ -7794,12 +7794,12 @@ snapshots:
|
|||
|
||||
'@react-aria/tabs@3.9.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/i18n': 3.12.2(react@18.3.1)
|
||||
'@react-aria/selection': 3.19.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/tabs': 3.6.6(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/tabs': 3.3.7(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
|
@ -7807,14 +7807,14 @@ snapshots:
|
|||
|
||||
'@react-aria/textfield@3.14.5(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.17.1(react@18.3.1)
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/form': 3.0.8(react@18.3.1)
|
||||
'@react-aria/label': 3.7.11(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/textfield': 3.9.3(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/textfield': 3.9.6(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7845,8 +7845,8 @@ snapshots:
|
|||
'@react-aria/tooltip@3.7.4(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/focus': 3.18.2(react@18.3.1)
|
||||
'@react-aria/interactions': 3.21.3(react@18.3.1)
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/interactions': 3.22.2(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-stately/tooltip': 3.4.9(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/tooltip': 3.4.9(react@18.3.1)
|
||||
|
|
@ -7890,9 +7890,9 @@ snapshots:
|
|||
'@react-stately/calendar@3.5.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@internationalized/date': 3.5.5
|
||||
'@react-stately/utils': 3.10.1(react@18.3.1)
|
||||
'@react-types/calendar': 3.4.6(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/calendar': 3.4.9(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7900,14 +7900,14 @@ snapshots:
|
|||
dependencies:
|
||||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/checkbox': 3.8.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/checkbox': 3.8.3(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-stately/collections@3.10.7(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7926,7 +7926,7 @@ snapshots:
|
|||
'@react-stately/select': 3.6.7(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/combobox': 3.11.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7938,7 +7938,7 @@ snapshots:
|
|||
'@react-stately/overlays': 3.6.10(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/datepicker': 3.7.4(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7948,7 +7948,7 @@ snapshots:
|
|||
|
||||
'@react-stately/form@3.0.3(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7972,7 +7972,7 @@ snapshots:
|
|||
'@react-stately/collections': 3.10.9(react@18.3.1)
|
||||
'@react-stately/selection': 3.16.2(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -7988,8 +7988,8 @@ snapshots:
|
|||
'@react-stately/menu@3.7.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-stately/overlays': 3.6.10(react@18.3.1)
|
||||
'@react-types/menu': 3.9.9(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/menu': 3.9.11(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -8011,7 +8011,7 @@ snapshots:
|
|||
'@react-stately/overlays@3.6.7(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/overlays': 3.8.7(react@18.3.1)
|
||||
'@react-types/overlays': 3.8.9(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -8020,7 +8020,7 @@ snapshots:
|
|||
'@react-stately/form': 3.0.5(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/radio': 3.8.1(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -8057,7 +8057,7 @@ snapshots:
|
|||
'@react-stately/grid': 3.9.2(react@18.3.1)
|
||||
'@react-stately/selection': 3.16.2(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/grid': 3.2.6(react@18.3.1)
|
||||
'@react-types/grid': 3.2.8(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/table': 3.9.5(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
|
|
@ -8066,14 +8066,14 @@ snapshots:
|
|||
'@react-stately/tabs@3.6.6(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-stately/list': 3.10.8(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@react-types/tabs': 3.3.7(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-stately/toggle@3.7.4(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-stately/utils': 3.10.1(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/checkbox': 3.8.3(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
|
@ -8097,7 +8097,7 @@ snapshots:
|
|||
'@react-stately/collections': 3.10.9(react@18.3.1)
|
||||
'@react-stately/selection': 3.16.2(react@18.3.1)
|
||||
'@react-stately/utils': 3.10.3(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -8122,25 +8122,25 @@ snapshots:
|
|||
|
||||
'@react-stately/virtualizer@3.7.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-aria/utils': 3.24.1(react@18.3.1)
|
||||
'@react-aria/utils': 3.25.2(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
'@swc/helpers': 0.5.13
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/accordion@3.0.0-alpha.21(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/breadcrumbs@3.7.5(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/link': 3.5.7(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/button@3.9.4(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/button@3.9.6(react@18.3.1)':
|
||||
|
|
@ -8151,7 +8151,7 @@ snapshots:
|
|||
'@react-types/calendar@3.4.6(react@18.3.1)':
|
||||
dependencies:
|
||||
'@internationalized/date': 3.5.5
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/calendar@3.4.9(react@18.3.1)':
|
||||
|
|
@ -8172,7 +8172,7 @@ snapshots:
|
|||
|
||||
'@react-types/combobox@3.11.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/datepicker@3.7.4(react@18.3.1)':
|
||||
|
|
@ -8180,7 +8180,7 @@ snapshots:
|
|||
'@internationalized/date': 3.5.5
|
||||
'@react-types/calendar': 3.4.9(react@18.3.1)
|
||||
'@react-types/overlays': 3.8.9(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/dialog@3.5.12(react@18.3.1)':
|
||||
|
|
@ -8223,7 +8223,7 @@ snapshots:
|
|||
'@react-types/menu@3.9.9(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/overlays': 3.8.9(react@18.3.1)
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/overlays@3.8.7(react@18.3.1)':
|
||||
|
|
@ -8243,12 +8243,12 @@ snapshots:
|
|||
|
||||
'@react-types/radio@3.8.1(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/select@3.9.4(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/select@3.9.6(react@18.3.1)':
|
||||
|
|
@ -8276,18 +8276,18 @@ snapshots:
|
|||
|
||||
'@react-types/table@3.9.5(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/grid': 3.2.6(react@18.3.1)
|
||||
'@react-types/grid': 3.2.8(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/tabs@3.3.7(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/textfield@3.9.3(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/shared': 3.23.1(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
'@react-types/textfield@3.9.6(react@18.3.1)':
|
||||
|
|
@ -8297,7 +8297,7 @@ snapshots:
|
|||
|
||||
'@react-types/tooltip@3.4.9(react@18.3.1)':
|
||||
dependencies:
|
||||
'@react-types/overlays': 3.8.7(react@18.3.1)
|
||||
'@react-types/overlays': 3.8.9(react@18.3.1)
|
||||
'@react-types/shared': 3.24.1(react@18.3.1)
|
||||
react: 18.3.1
|
||||
|
||||
|
|
@ -9611,7 +9611,7 @@ snapshots:
|
|||
debug: 4.3.5
|
||||
enhanced-resolve: 5.17.0
|
||||
eslint: 8.57.1
|
||||
eslint-module-utils: 2.8.1(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1)
|
||||
eslint-module-utils: 2.8.1(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
|
||||
fast-glob: 3.3.2
|
||||
get-tsconfig: 4.7.5
|
||||
is-bun-module: 1.2.1
|
||||
|
|
@ -9624,7 +9624,7 @@ snapshots:
|
|||
- eslint-import-resolver-webpack
|
||||
- supports-color
|
||||
|
||||
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1):
|
||||
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1):
|
||||
dependencies:
|
||||
debug: 3.2.7
|
||||
optionalDependencies:
|
||||
|
|
@ -9635,7 +9635,7 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
eslint-module-utils@2.8.1(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1):
|
||||
eslint-module-utils@2.8.1(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1):
|
||||
dependencies:
|
||||
debug: 3.2.7
|
||||
optionalDependencies:
|
||||
|
|
@ -9671,7 +9671,7 @@ snapshots:
|
|||
doctrine: 2.1.0
|
||||
eslint: 8.57.1
|
||||
eslint-import-resolver-node: 0.3.9
|
||||
eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1)
|
||||
eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
|
||||
hasown: 2.0.2
|
||||
is-core-module: 2.15.1
|
||||
is-glob: 4.0.3
|
||||
|
|
|
|||
|
|
@ -1,9 +1,18 @@
|
|||
import { useState } from "react"
|
||||
import { Button, Input, Textarea } from "@nextui-org/react"
|
||||
import { useState, useEffect } from "react"
|
||||
import {
|
||||
Button,
|
||||
Input,
|
||||
Textarea,
|
||||
Spinner,
|
||||
Popover,
|
||||
PopoverTrigger,
|
||||
PopoverContent,
|
||||
} from "@nextui-org/react"
|
||||
import { activeClient } from "../../../utils/client"
|
||||
|
||||
export default function JoinForm() {
|
||||
const [formData, setFormData] = useState({ name: "",
|
||||
const [formData, setFormData] = useState({
|
||||
name: "",
|
||||
class: "",
|
||||
number: "",
|
||||
major: "",
|
||||
|
|
@ -12,20 +21,28 @@ export default function JoinForm() {
|
|||
email: "",
|
||||
memo: "",
|
||||
})
|
||||
function saveToLocalStorage() {
|
||||
|
||||
const [loading, setLoading] = useState(false)// 添加加载状态
|
||||
const [popoverOpen, setPopoverOpen] = useState(false)// 控制 Popover 显示
|
||||
const [popoverMessage, setPopoverMessage] = useState("")// Popover 显示的消息
|
||||
|
||||
// 在组件挂载时加载本地存储的数据
|
||||
useEffect(() => {
|
||||
const loadFromLocalStorage = () => {
|
||||
const data = localStorage.getItem("formData")
|
||||
if (data) {
|
||||
setFormData(JSON.parse(data))
|
||||
}
|
||||
}
|
||||
loadFromLocalStorage()
|
||||
}, [])
|
||||
|
||||
// 保存表单数据到本地存储
|
||||
const saveToLocalStorage = () => {
|
||||
localStorage.setItem("formData", JSON.stringify(formData))
|
||||
}
|
||||
function loadFromLocalStorage() {
|
||||
const data = localStorage.getItem("formData")
|
||||
if (data) {
|
||||
setFormData(JSON.parse(data))
|
||||
}
|
||||
}
|
||||
const [firstRender, setFirstRender] = useState(true)
|
||||
if (firstRender) {
|
||||
setFirstRender(false)
|
||||
loadFromLocalStorage()
|
||||
}
|
||||
|
||||
// 处理表单输入变化
|
||||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const { name, value } = e.target
|
||||
setFormData(prevData => ({
|
||||
|
|
@ -41,19 +58,31 @@ export default function JoinForm() {
|
|||
}
|
||||
}, 100)
|
||||
}
|
||||
|
||||
// 处理表单提交
|
||||
const handleSubmit = async () => {
|
||||
setLoading(true)// 设置加载状态为 true
|
||||
try {
|
||||
await activeClient.freshman.postFreshmanAdd({
|
||||
requestBody: formData,
|
||||
})
|
||||
alert("提交成功! 后续请加群获取!")
|
||||
window.location.href = "/freshman/qrcode"
|
||||
setPopoverMessage("提交成功!后续请加群获取!")
|
||||
setPopoverOpen(true) // 显示成功消息
|
||||
// 延迟跳转以确保用户能看到 Popover 消息
|
||||
setTimeout(() => {
|
||||
window.location.href = "/freshman/qrcode"
|
||||
}, 2000)
|
||||
}
|
||||
catch (error) {
|
||||
console.error("Error submitting form:", error)
|
||||
alert("Failed to submit form.")
|
||||
setPopoverMessage("提交失败,请稍后重试。")
|
||||
setPopoverOpen(true)
|
||||
}
|
||||
finally {
|
||||
setLoading(false)// 重置加载状态
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<form className="flex flex-col gap-8">
|
||||
|
|
@ -97,7 +126,6 @@ export default function JoinForm() {
|
|||
<Input
|
||||
name="phone"
|
||||
placeholder="电话"
|
||||
className=""
|
||||
value={formData.phone}
|
||||
onChange={handleChange}
|
||||
required
|
||||
|
|
@ -105,7 +133,6 @@ export default function JoinForm() {
|
|||
<Input
|
||||
name="qq"
|
||||
placeholder="QQ"
|
||||
className=""
|
||||
value={formData.qq}
|
||||
onChange={handleChange}
|
||||
required
|
||||
|
|
@ -113,7 +140,6 @@ export default function JoinForm() {
|
|||
<Input
|
||||
name="email"
|
||||
placeholder="邮箱"
|
||||
className=""
|
||||
value={formData.email}
|
||||
onChange={handleChange}
|
||||
required
|
||||
|
|
@ -123,12 +149,43 @@ export default function JoinForm() {
|
|||
label="备注"
|
||||
name="memo"
|
||||
placeholder=""
|
||||
className="col-span-2"
|
||||
value={formData.memo}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
</form>
|
||||
<Button className="mt-12" type="submit" color="primary" fullWidth onClick={handleSubmit}>提交</Button>
|
||||
|
||||
{/* Popover 显示提交结果 */}
|
||||
<Popover
|
||||
isOpen={popoverOpen} // 使用 'isOpen' 来控制可见性
|
||||
onOpenChange={setPopoverOpen} // 使用 'onOpenChange' 来处理可见性变化
|
||||
>
|
||||
<PopoverTrigger>
|
||||
<Button
|
||||
className="mt-12"
|
||||
type="button" // 改为 'button' 类型,防止默认提交行为
|
||||
color="primary"
|
||||
fullWidth
|
||||
onClick={handleSubmit}
|
||||
disabled={loading} // 加载时禁用按钮
|
||||
style={{
|
||||
cursor: loading ? "not-allowed" : "pointer", // 设置鼠标样式
|
||||
}}
|
||||
>
|
||||
{loading ? <Spinner size="sm" color="white" /> : "提交"} {/* 显示加载动画或提交文本 */}
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
style={{
|
||||
padding: "20px",
|
||||
backgroundColor: "#f0f0f0",
|
||||
borderRadius: "10px",
|
||||
boxShadow: "0 4px 10px rgba(0, 0, 0, 0.1)",
|
||||
minWidth: "200px",
|
||||
}}
|
||||
>
|
||||
<p>{popoverMessage}</p> {/* 使用重命名后的组件 */}
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue