refactor: merge index & member page
This commit is contained in:
@@ -31,7 +31,7 @@ export interface MainPageText {
|
||||
};
|
||||
inDuty: {
|
||||
title: string;
|
||||
currentDutyText: (c: 'off' | '1' | '2' | '3') => string;
|
||||
currentDutyText: (c: 'off' | '1' | '2' | '3' | 'others') => string;
|
||||
inDutyCnt: (n: number) => string;
|
||||
};
|
||||
};
|
||||
@@ -89,6 +89,8 @@ export const mainPageZhCn: MainPageText = {
|
||||
return '第二班 16:00-18:00';
|
||||
case '3':
|
||||
return '第三班 18:00-20:30';
|
||||
case 'others':
|
||||
return '其他值班时间,见通知';
|
||||
}
|
||||
},
|
||||
inDutyCnt: (n) => '当前值班人数:' + n,
|
||||
@@ -148,6 +150,8 @@ export const mainPageEnUs: MainPageText = {
|
||||
return '2nd Shift 16:00-18:00';
|
||||
case '3':
|
||||
return '3rd Shift 18:00-20:30';
|
||||
case 'others':
|
||||
return 'Other duty time, see notice';
|
||||
}
|
||||
},
|
||||
inDutyCnt: (n) => 'EVA members on duty: ' + n,
|
||||
|
||||
Reference in New Issue
Block a user