Skip to content

Commit c764b1f

Browse files
committed
Comment out issues cards
1 parent cd51d61 commit c764b1f

File tree

1 file changed

+38
-41
lines changed

1 file changed

+38
-41
lines changed

src/pages/contribute/index.tsx

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,47 +19,44 @@ import { Endpoints } from '@octokit/types';
1919

2020
type listRepoIssuesResponse = Endpoints['GET /repos/{owner}/{repo}/issues']['response'];
2121

22-
export async function getStaticProps() {
23-
if (process.env.PROD_ENV === 'production') {
24-
const octokit = new Octokit({});
22+
// export async function getStaticProps() {
23+
// if (process.env.PROD_ENV === 'production') {
24+
// const octokit = new Octokit({});
25+
// const {
26+
// data: JsIssues
27+
// }: {
28+
// data: listRepoIssuesResponse['data'];
29+
// } = await octokit.rest.issues.listForRepo({
30+
// owner: 'aws-amplify',
31+
// repo: 'amplify-js',
32+
// state: 'open',
33+
// labels: 'good first issue',
34+
// // eslint-disable-next-line @typescript-eslint/camelcase
35+
// per_page: 6
36+
// });
37+
// const {
38+
// data: CLIissues
39+
// }: {
40+
// data: listRepoIssuesResponse['data'];
41+
// } = await octokit.rest.issues.listForRepo({
42+
// owner: 'aws-amplify',
43+
// repo: 'amplify-cli',
44+
// state: 'open',
45+
// labels: 'good first issue',
46+
// // eslint-disable-next-line @typescript-eslint/camelcase
47+
// per_page: 6
48+
// });
49+
// return {
50+
// props: { JsIssues, CLIissues }
51+
// };
52+
// }
2553

26-
const {
27-
data: JsIssues
28-
}: {
29-
data: listRepoIssuesResponse['data'];
30-
} = await octokit.rest.issues.listForRepo({
31-
owner: 'aws-amplify',
32-
repo: 'amplify-js',
33-
state: 'open',
34-
labels: 'good first issue',
35-
// eslint-disable-next-line @typescript-eslint/camelcase
36-
per_page: 6
37-
});
54+
// return {
55+
// props: {}
56+
// };
57+
// }
3858

39-
const {
40-
data: CLIissues
41-
}: {
42-
data: listRepoIssuesResponse['data'];
43-
} = await octokit.rest.issues.listForRepo({
44-
owner: 'aws-amplify',
45-
repo: 'amplify-cli',
46-
state: 'open',
47-
labels: 'good first issue',
48-
// eslint-disable-next-line @typescript-eslint/camelcase
49-
per_page: 6
50-
});
51-
52-
return {
53-
props: { JsIssues, CLIissues }
54-
};
55-
}
56-
57-
return {
58-
props: {}
59-
};
60-
}
61-
62-
export default function ContributorPage({ JsIssues, CLIissues }) {
59+
export default function ContributorPage() {
6360
const meta = {
6461
title: 'AWS Amplify Contributor Program',
6562
description:
@@ -118,7 +115,7 @@ export default function ContributorPage({ JsIssues, CLIissues }) {
118115

119116
<HowItWorks />
120117

121-
<Flex
118+
{/* <Flex
122119
direction="column"
123120
maxWidth="1024px"
124121
width={{ base: '90%', large: '60%' }}
@@ -168,7 +165,7 @@ export default function ContributorPage({ JsIssues, CLIissues }) {
168165
description="The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development."
169166
/>
170167
</Card>
171-
</Flex>
168+
</Flex> */}
172169

173170
<QuickstartResources />
174171
{/* <Contributors /> */}

0 commit comments

Comments
 (0)