Skip to content

Commit

Permalink
Update eslint-config back to 8.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Draikth committed Jul 18, 2024
1 parent 0a4707b commit 140107b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
5 changes: 5 additions & 0 deletions app/events/[eventId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from 'next/link';
import { notFound } from 'next/navigation';
import { getEventInsecure } from '../../../database/events';

Expand Down Expand Up @@ -51,6 +52,10 @@ export default async function EventPage(props: Props) {
{singleEvent.organizerUrl}
<br />
</div>
<div>
<br />
<Link href="/events">Back to Upcoming Events</Link>
</div>
</div>
);
}
22 changes: 22 additions & 0 deletions app/post/PostEventForm.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use client';

import { useState } from 'react';
import { Event } from '../../database/events';

type Props = {
events: Event[];
};

export default function RegisterForm(props: Props) {

Check warning on line 10 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'props' is defined but never used
const [name, setName] = useState('');

Check warning on line 11 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'name' is assigned a value but never used

Check warning on line 11 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'setName' is assigned a value but never used
const [type, setType] = useState('');

Check warning on line 12 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'type' is assigned a value but never used

Check warning on line 12 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'setType' is assigned a value but never used
const [date, setDate] = useState('');

Check warning on line 13 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'date' is assigned a value but never used

Check warning on line 13 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'setDate' is assigned a value but never used
const [location, setLocation] = useState('');

Check warning on line 14 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'location' is assigned a value but never used

Check warning on line 14 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'setLocation' is assigned a value but never used
const [duration, setDuration] = useState('');

Check warning on line 15 in app/post/PostEventForm.tsx

View workflow job for this annotation

GitHub Actions / Jest Unit Tests, Type Checking, Linting, Playwright End to End Tests

'duration' is assigned a value but never used
const [entryFee, setEntryFee] = useState('');
const [category, setCategory] = useState('');
const [description, setDescription] = useState('');
const [image, setImage] = useState('');
const [organizerUrl, setOrganizerUrl] = useState('');
const [ageRestriction, setAgeRestriction] = useState('');
}
2 changes: 1 addition & 1 deletion database/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const createEvent = cache(
archived
) (
SELECT
${newEvent.userId},
user_id,
${newEvent.name},
${newEvent.type},
${newEvent.date},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint-config-upleveled": "^8.5.0",
"eslint-config-upleveled": "^8.6.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"libpg-query": "^16.2.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 140107b

Please sign in to comment.