Skip to content

Commit 8343ef0

Browse files
committed
First round of lint failures
1 parent 6fe7141 commit 8343ef0

File tree

12 files changed

+24
-37
lines changed

12 files changed

+24
-37
lines changed

site/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export namespace Project {
8383

8484
export const createWorkspace = async (name: string): Promise<string> => {
8585
await wait(250)
86-
return "test-workspace"
86+
return name
8787
}
8888
}
8989

site/components/Form/FormSection.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import FormHelperText from "@material-ui/core/FormHelperText"
21
import { makeStyles } from "@material-ui/core/styles"
32
import Typography from "@material-ui/core/Typography"
4-
import { Style } from "@material-ui/icons"
53
import React from "react"
64

75
export interface FormSectionProps {

site/components/Form/FormTextField.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,6 @@ export interface FormFieldProps<T> {
1818
formFieldName: keyof T
1919
}
2020

21-
/**
22-
* FormFieldProps are required props for creating form fields using a factory.
23-
*/
24-
export interface FormFieldProps<T> {
25-
/**
26-
* form is a reference to a form or subform and is used to compute common
27-
* states such as error and helper text
28-
*/
29-
form: FormikLike<T>
30-
/**
31-
* formFieldName is a field name associated with the form schema.
32-
*/
33-
formFieldName: keyof T
34-
}
35-
3621
/**
3722
* FormTextFieldProps extends form-related MUI TextFieldProps with Formik
3823
* props. The passed in form is used to compute error states and configure

site/components/Form/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./FormRow"
22
export * from "./FormSection"
33
export * from "./FormTextField"
4-
export * from "./FormTitle"
4+
export * from "./FormTitle"

site/components/Navbar/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from "react"
22
import Button from "@material-ui/core/Button"
3-
import List from "@material-ui/core/List"
4-
import ListSubheader from "@material-ui/core/ListSubheader"
53
import { makeStyles } from "@material-ui/core/styles"
64
import Link from "next/link"
75

site/components/PageTemplates/FormPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Button from "@material-ui/core/Button"
2-
import Typography from "@material-ui/core/Typography"
32
import { makeStyles } from "@material-ui/core/styles"
43
import { ButtonProps } from "@material-ui/core/Button"
54
import React from "react"

site/components/PageTemplates/LoadingPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Box, CircularProgress, makeStyles } from "@material-ui/core"
1+
import { makeStyles } from "@material-ui/core/styles"
2+
import CircularProgress from "@material-ui/core/CircularProgress"
23
import React from "react"
34
import { RequestState } from "../../hooks/useRequestor"
45

site/components/PageTemplates/RedirectPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export const RedirectPage: React.FC<RedirectPageProps> = ({ path }) => {
99
const router = useRouter()
1010

1111
useEffect(() => {
12-
router.push(path)
12+
// 'void' - we're OK with this promise being fire-and-forget
13+
void router.push(path)
1314
})
1415

1516
return null

site/components/Project/ProjectIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react"
2-
import { Box, makeStyles } from "@material-ui/core"
2+
import { makeStyles } from "@material-ui/core/styles"
3+
import Box from "@material-ui/core/Box"
34
import { ProjectName } from "./ProjectName"
45

56
export interface ProjectIconProps {

site/components/Project/ProjectName.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react"
2-
import { makeStyles, Typography } from "@material-ui/core"
2+
import { makeStyles } from "@material-ui/core/styles"
3+
import Typography from "@material-ui/core/Typography"
34

45
const useStyles = makeStyles((theme) => ({
56
root: {

0 commit comments

Comments
 (0)