Skip to content

Commit

Permalink
🚨 Fix ESLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leodr committed Jul 24, 2021
1 parent 34070e6 commit 536b8b6
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/SnackbarProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function SnackbarProvider({ children }: Props): ReactElement {
className="flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-rose-500 bg-white hover:bg-rose-50"
onClick={() => snackbar.undo?.()}
>
"Undo"
&qout;Undo&qout;
</button>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SubmissionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function SubmissionList({
);
}}
components={{
Footer: () => {
Footer() {
if (!canLoadMore) return null;

return (
Expand Down
1 change: 1 addition & 0 deletions src/components/form-data-list/ArrayEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function ArrayEntry({
<dd className="mt-1 text-sm text-gray-900">
<ul className="space-y-1">
{value.map((e) => (
// eslint-disable-next-line react/jsx-key
<li className="flex items-center space-x-2">
<span
aria-hidden="true"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[formSlug]/[submissionId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ export default function FormPage() {
);
}

FormPage.getLayout = (page: ReactNode) => {
FormPage.getLayout = function getLayout(page: ReactNode) {
return <AppLayout>{page}</AppLayout>;
};
2 changes: 1 addition & 1 deletion src/pages/[formSlug]/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,6 @@ export default function FormSettingsPage() {
);
}

FormSettingsPage.getLayout = (page: ReactNode) => {
FormSettingsPage.getLayout = function getLayout(page: ReactNode) {
return <AppLayout>{page}</AppLayout>;
};
2 changes: 1 addition & 1 deletion src/pages/inbox/[submissionId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ export default function InboxPage() {
);
}

InboxPage.getLayout = (page: ReactNode) => {
InboxPage.getLayout = function getLayout(page: ReactNode) {
return <AppLayout>{page}</AppLayout>;
};
2 changes: 1 addition & 1 deletion src/pages/join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function JoinPage() {
);
}

JoinPage.getLayout = (page: ReactNode) => {
JoinPage.getLayout = function getLayout(page: ReactNode) {
return (
<AuthLayout
headline="Create your account"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function LoginPage() {
);
}

LoginPage.getLayout = (page: ReactNode) => {
LoginPage.getLayout = function getLayout(page: ReactNode) {
return (
<AuthLayout
headline="Sign in to your account"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/new-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,6 @@ export default function NewFormPage() {
);
}

NewFormPage.getLayout = (page: ReactNode) => {
NewFormPage.getLayout = function getLayout(page: ReactNode) {
return <AppLayout>{page}</AppLayout>;
};
6 changes: 3 additions & 3 deletions src/pages/reset-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default function PasswordResetPage() {
<title>Reset Password | Quice</title>
</Head>
<p className="text-sm text-gray-500">
Enter your user account's verified email address and we will send you a
password reset link.
Enter your user account&apos;s verified email address and we will send
you a password reset link.
</p>
<div>
<label
Expand Down Expand Up @@ -97,7 +97,7 @@ export default function PasswordResetPage() {
);
}

PasswordResetPage.getLayout = (page: ReactNode) => {
PasswordResetPage.getLayout = function getLayout(page: ReactNode) {
return (
<AuthLayout
headline="Reset your password"
Expand Down
6 changes: 3 additions & 3 deletions src/pages/setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ export default function SetupPage() {
</span>
</h1>
<p className="mt-3 text-base text-gray-500 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">
First we'll guide you through a short setup sequence. You
will set up an account, add members that can access this
workspace and create your first form!
First we&apos;ll guide you through a short setup sequence.
You will set up an account, add members that can access
this workspace and create your first form!
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export default function TasksPage() {
);
}

TasksPage.getLayout = (page: ReactNode) => {
TasksPage.getLayout = function getLayout(page: ReactNode) {
return <AppLayout>{page}</AppLayout>;
};

0 comments on commit 536b8b6

Please sign in to comment.