Skip to content

Commit cbd68e4

Browse files
committed
Run prettier
1 parent 726177d commit cbd68e4

File tree

6 files changed

+50
-25
lines changed

6 files changed

+50
-25
lines changed

src/components/Header.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ function Header(props: HeaderProps): ReactElement {
4545
[classes.absolute]: absolute,
4646
[classes.fixed]: fixed,
4747
})}
48-
color={color}>
48+
color={color}
49+
>
4950
<Toolbar className={classes.container}>
5051
<Typography className={classes.title} component="div" variant="h4">
5152
{brand}
@@ -57,20 +58,23 @@ function Header(props: HeaderProps): ReactElement {
5758
position: "absolute",
5859
top: "calc(50% - 0.98rem)",
5960
marginLeft: theme.spacing(4),
60-
}}>
61+
}}
62+
>
6163
<a
6264
href={repositoryData.owner.url}
6365
rel="noreferrer"
6466
target="_blank"
65-
style={{ color: theme.palette.text.primary }}>
67+
style={{ color: theme.palette.text.primary }}
68+
>
6669
{repositoryData?.owner?.login}
6770
</a>
6871
/
6972
<a
7073
href={repositoryData.url}
7174
rel="noreferrer"
7275
target="_blank"
73-
style={{ color: theme.palette.text.primary }}>
76+
style={{ color: theme.palette.text.primary }}
77+
>
7478
{repositoryData?.name}
7579
</a>
7680
</Typography>
@@ -86,7 +90,8 @@ function Header(props: HeaderProps): ReactElement {
8690
color="inherit"
8791
aria-label="open drawer"
8892
size="large"
89-
onClick={handleDrawerToggle}>
93+
onClick={handleDrawerToggle}
94+
>
9095
<Icon path={mdiMenu} size={1} />
9196
</IconButton>
9297
</Hidden>
@@ -99,7 +104,8 @@ function Header(props: HeaderProps): ReactElement {
99104
classes={{
100105
paper: classes.drawerPaper,
101106
}}
102-
onClose={handleDrawerToggle}>
107+
onClose={handleDrawerToggle}
108+
>
103109
<div className={classes.appResponsive}>{rightLinks}</div>
104110
</Drawer>
105111
</Hidden>

src/components/HeaderLinks.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function HeaderLinks(): ReactElement {
3939
}}
4040
onMouseLeave={() => {
4141
setHoveringLoginButton(false);
42-
}}>
42+
}}
43+
>
4344
<span className={classes.listItemText}>
4445
{hoveringLoginButton
4546
? "Log out of GitHub"
@@ -56,7 +57,8 @@ function HeaderLinks(): ReactElement {
5657
<Button
5758
variant="outlined"
5859
className={classes.navLink}
59-
onClick={handleSetRepository}>
60+
onClick={handleSetRepository}
61+
>
6062
<span className={classes.listItemText}>Set Repository</span>
6163
</Button>
6264
</ListItem>
@@ -69,7 +71,8 @@ function HeaderLinks(): ReactElement {
6971
href={{
7072
pathname: "/",
7173
query: router.query,
72-
}}>
74+
}}
75+
>
7376
<Button variant="text" className={classes.navLink}>
7477
<span className={classes.listItemText}>Dashboard</span>
7578
</Button>

src/components/Image.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function Image({
3838
<Fragment>
3939
<ButtonBase
4040
className={!showAsImage ? classes.galleryItem : ""}
41-
onClick={openMediaDialog}>
41+
onClick={openMediaDialog}
42+
>
4243
<Card className={classes.galleryItemCard} elevation={hidePaper ? 0 : 1}>
4344
{showAsImage ? (
4445
<img src={media.url} alt={media.alternativeText} />
@@ -63,7 +64,8 @@ function Image({
6364
scroll="body"
6465
open={showDialog}
6566
onClick={closeMediaDialog}
66-
onClose={closeMediaDialog}>
67+
onClose={closeMediaDialog}
68+
>
6769
{showDialog ? (
6870
<Fragment>
6971
{!hideTitle && media.alternativeText ? (

src/components/MoveIteration.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function MoveIteration({
3939
maxWidth="sm"
4040
scroll="body"
4141
open={newIteration ? true : false}
42-
onClose={handleCloseMoveIteration}>
42+
onClose={handleCloseMoveIteration}
43+
>
4344
<DialogTitle>Move iteration</DialogTitle>
4445
<DialogContent>
4546
<DialogContentText>
@@ -69,7 +70,8 @@ function MoveIteration({
6970
<Button
7071
onClick={() => {
7172
handleMoveIterationConfirm(newIteration);
72-
}}>
73+
}}
74+
>
7375
Move
7476
</Button>
7577
</DialogActions>

src/components/SetRepository.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ function SetRepository(): ReactElement {
158158
maxWidth="md"
159159
open
160160
scroll="body"
161-
onClose={handleCloseSetRepository}>
161+
onClose={handleCloseSetRepository}
162+
>
162163
<DialogTitle>Change Repository</DialogTitle>
163164
{newRepository ? (
164165
<>
@@ -169,7 +170,8 @@ function SetRepository(): ReactElement {
169170
xs={5}
170171
container
171172
alignContent="center"
172-
justifyContent="flex-end">
173+
justifyContent="flex-end"
174+
>
173175
<Timeline position="alternate">
174176
{steps.map((step: Step, key: number) => (
175177
<TimelineItem key={key}>
@@ -193,7 +195,8 @@ function SetRepository(): ReactElement {
193195
xs
194196
container
195197
alignContent="center"
196-
justifyContent="center">
198+
justifyContent="center"
199+
>
197200
{currentStep.label === "Type" ? (
198201
<Autocomplete
199202
disableClearable
@@ -271,7 +274,8 @@ function SetRepository(): ReactElement {
271274
<Grid
272275
container
273276
alignContent="space-around"
274-
justifyContent="space-around">
277+
justifyContent="space-around"
278+
>
275279
<CircularProgress color="primary" />
276280
</Grid>
277281
)}

src/pages/index.tsx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ export default function Home({ clientId }: HomeProps): ReactElement {
277277
container
278278
direction="row"
279279
alignContent="space-around"
280-
justifyContent="center">
280+
justifyContent="center"
281+
>
281282
{alert ? (
282283
<Grid item xs={11}>
283284
<Alert severity="error">{alert}</Alert>
@@ -294,7 +295,8 @@ export default function Home({ clientId }: HomeProps): ReactElement {
294295
sx={{ padding: theme.spacing(1), marginBottom: theme.spacing(2) }}
295296
onClick={() => {
296297
router.push(authorizeUrl);
297-
}}>
298+
}}
299+
>
298300
Authenticate with GitHub
299301
</Button>
300302
</Grid>
@@ -307,14 +309,16 @@ export default function Home({ clientId }: HomeProps): ReactElement {
307309
sx={{
308310
padding: theme.spacing(0),
309311
textAlign: "center",
310-
}}>
312+
}}
313+
>
311314
{repositoryData ? (
312315
<>
313316
<Grid
314317
container
315318
direction="row"
316319
alignContent="space-around"
317-
justifyContent="space-around">
320+
justifyContent="space-around"
321+
>
318322
<Stat
319323
icon={mdiChatOutline}
320324
title="Discussions"
@@ -364,7 +368,8 @@ export default function Home({ clientId }: HomeProps): ReactElement {
364368
direction="row"
365369
alignContent="space-around"
366370
justifyContent="space-around"
367-
sx={{ margin: theme.spacing(2, 0) }}>
371+
sx={{ margin: theme.spacing(2, 0) }}
372+
>
368373
<Grid item sm={12} lg={6} sx={{ padding: theme.spacing(1, 2) }}>
369374
<Typography variant="h4" noWrap>
370375
<Icon
@@ -381,7 +386,8 @@ export default function Home({ clientId }: HomeProps): ReactElement {
381386
style={{
382387
width: "100%",
383388
height: 520,
384-
}}>
389+
}}
390+
>
385391
<ResponsiveContainer width="100%" height="100%">
386392
<LineChart data={issuesByDay}>
387393
<XAxis dataKey="date" />
@@ -417,7 +423,8 @@ export default function Home({ clientId }: HomeProps): ReactElement {
417423
style={{
418424
width: "100%",
419425
height: 520,
420-
}}>
426+
}}
427+
>
421428
<ResponsiveContainer width="100%" height="100%">
422429
<LineChart data={pullRequestsByDay}>
423430
<XAxis dataKey="date" />
@@ -443,7 +450,8 @@ export default function Home({ clientId }: HomeProps): ReactElement {
443450
<Grid
444451
container
445452
alignContent="space-around"
446-
justifyContent="space-around">
453+
justifyContent="space-around"
454+
>
447455
{status === Status.NoRepository ? (
448456
<Typography variant="h4" noWrap>
449457
Please select a repository

0 commit comments

Comments
 (0)