File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- const data = ref ({
3
- notificationTitle: ' Parents signup is now open!' ,
4
- notificationDescription:
5
- ' Once you have signed up, we will inform you via email when you have been allocated a family!'
2
+ const { currentState } = useAppState ();
3
+
4
+ const data = computed (() => {
5
+ switch (currentState .value ) {
6
+ case ' parents_open' :
7
+ return {
8
+ notificationTitle: ' Parents signup is now open!' ,
9
+ notificationDescription:
10
+ ' Sign up to be a parent and help freshers settle into university life!'
11
+ };
12
+ case ' parents_close' :
13
+ return {
14
+ notificationTitle: ' Parents signup is now closed!' ,
15
+ notificationDescription:
16
+ ' If you have signed up, look out for an email soon! Fresher signup will open soon.'
17
+ };
18
+ case ' freshers_open' :
19
+ return {
20
+ notificationTitle: ' Freshers signup is now open!' ,
21
+ notificationDescription: ' Sign up to be adopted by a DoCSoc family'
22
+ };
23
+ case ' closed' :
24
+ return {
25
+ notificationTitle: ' Mums and Dads is now closed!' ,
26
+ notificationDescription:
27
+ ' Thank you for signing up! Look out for any emails for more information.'
28
+ };
29
+ }
6
30
});
7
31
</script >
8
32
You can’t perform that action at this time.
0 commit comments