Skip to content

Commit

Permalink
fix: comment out the cells, since they throw this error
Browse files Browse the repository at this point in the history
  • Loading branch information
dysmento committed Dec 7, 2023
1 parent 41eb266 commit 3e52fa4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
export const standard = (/* vars, { ctx, req } */) => ({
reportingPeriod: {
id: 42,
name: 'Q423',
},
})
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Success = ({
<td>{item.startDate}</td>
<td>{item.endDate}</td>
<td>
{item.inputTemplate && item.inputTemplate.name}
{item.inputTemplate?.name}
{!item.certifiedAt && (
<span>
{' '}
Expand All @@ -65,7 +65,7 @@ export const Success = ({
) : (
item.certifiedAt && (
<span>
{item.certifiedAt} by {item.certifiedBy.email}
{item.certifiedAt} by {item.certifiedBy?.email}
</span>
)
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ReportingPeriodsPage = () => {
<MetaTags title="ReportingPeriods" description="ReportingPeriods page" />

<h1>Reporting Periods</h1>
<ReportingPeriodsCell />
{/* <ReportingPeriodsCell /> */}
</>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import UploadTemplatePage from './UploadTemplatePage'
describe('UploadTemplatePage', () => {
it('renders successfully', () => {
expect(() => {
render(<UploadTemplatePage id="1" />)
render(<UploadTemplatePage id={1} />)
}).not.toThrow()
})
})
2 changes: 1 addition & 1 deletion web/src/pages/UploadTemplatePage/UploadTemplatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const UploadTemplatePage = ({ id }) => {
<h1>Upload Period Template</h1>
<p>
This upload will be used as the template for period{' '}
<ReportingPeriodCell id={id} />
{/* <ReportingPeriodCell id={id} /> */}
</p>
<Form onSubmit={onSubmit}>
<FileField name="file" />
Expand Down
4 changes: 2 additions & 2 deletions web/types/graphql.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ export type FindReportingPeriodQueryVariables = Exact<{
}>;


export type FindReportingPeriodQuery = { __typename?: 'Query', reportingPeriod?: { __typename?: 'ReportingPeriod', id: number, name: string } | null };
export type FindReportingPeriodQuery = { __typename?: 'Query', reportingPeriod?: { __typename?: 'ReportingPeriod', name: string } | null };

export type ReportingPeriodsQueryVariables = Exact<{ [key: string]: never; }>;


export type ReportingPeriodsQuery = { __typename?: 'Query', reportingPeriods: Array<{ __typename?: 'ReportingPeriod', id: number, startDate: string, endDate: string, isCurrentPeriod: boolean, certifiedAt?: string | null, inputTemplate: { __typename?: 'InputTemplate', name: string }, certifiedBy?: { __typename?: 'User', email: string } | null }> };
export type ReportingPeriodsQuery = { __typename?: 'Query', reportingPeriods: Array<{ __typename?: 'ReportingPeriod', id: number, startDate: string, endDate: string, isCurrentPeriod: boolean, certifiedAt?: string | null, certifiedBy?: { __typename?: 'User', email: string } | null, inputTemplate: { __typename?: 'InputTemplate', name: string } }> };

0 comments on commit 3e52fa4

Please sign in to comment.