Skip to content

Commit ca41e0b

Browse files
committed
refactor: update report type and button text in PrizeInfoPage for clarity
1 parent f96564f commit ca41e0b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/pages/Resources/PrizeInfoPage.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import ReportGeneratorButton from '../../components/ReportGeneratorButton';
55
import { ReportType } from '../../types/Report';
66
import { ALERT_NOT_LOGGED_IN } from '../../constants/messages';
77

8-
const REQUIRED_REPORT_TYPE = ReportType.PKEY;
98

109
const PrizeInfoPage: React.FC = () => {
1110
const { token, user } = useContext(AuthContext);
@@ -30,15 +29,15 @@ const PrizeInfoPage: React.FC = () => {
3029
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setFile(e.currentTarget.files?.[0] ?? null)}
3130
/>
3231
<Form.Text className="text-muted">
33-
Select the prize info CSV file to generate the PKEY report.
32+
Select the prize info CSV file to generate the Prize Tickets report.
3433
</Form.Text>
3534
</Form.Group>
3635
<div className="d-flex gap-2">
3736
<ReportGeneratorButton<File>
38-
requiredReportType={REQUIRED_REPORT_TYPE}
37+
requiredReportType={ReportType.PKEY}
3938
token={token}
4039
user={user}
41-
buttonText="Generate PKEY Sheets"
40+
buttonText="Generate Prize Tickets"
4241
disabled={!file}
4342
modalEnabled={false}
4443
defaultFormData={file as File}

0 commit comments

Comments
 (0)