Skip to content

Commit f4dfbf7

Browse files
committed
Upgrade dependencies and fix prettier
1 parent add6fea commit f4dfbf7

File tree

46 files changed

+19032
-22610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+19032
-22610
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ build/
1010
# editor because it is breaking things... Needs fixing
1111
components/editor/editor/
1212

13+
# prettier
14+
prettier.json
15+
1316

app/(app)/[username]/_usernameClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const Profile = ({ profile, isOwner, session }: Props) => {
231231
rows={4}
232232
name="note"
233233
id="note"
234-
className="block w-full rounded-md border-0 py-1.5 shadow-sm ring-1 ring-inset ring-gray-900 placeholder:text-gray-400 focus:ring-2 focus:ring-inset dark:ring-gray-300 sm:text-sm sm:leading-6"
234+
className="block w-full rounded-md border-0 py-1.5 shadow-sm ring-1 ring-inset ring-gray-900 placeholder:text-gray-400 focus:ring-2 focus:ring-inset dark:ring-gray-300 sm:text-sm sm:leading-6"
235235
defaultValue={""}
236236
/>
237237
</div>

app/(app)/alpha/additional-details/_client.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function SlideOne({ details }: { details: UserDetails }) {
154154
</Field>
155155
</div>
156156

157-
<div className="mx-4 mt-4 ">
157+
<div className="mx-4 mt-4">
158158
<Field>
159159
<Label>Surname</Label>
160160
<Input
@@ -171,11 +171,11 @@ function SlideOne({ details }: { details: UserDetails }) {
171171
</Field>
172172
</div>
173173

174-
<div className="mx-4 mt-4 ">
174+
<div className="mx-4 mt-4">
175175
<Field>
176176
<Label>Username</Label>
177177
<div className="mt-2 flex rounded-md shadow-sm">
178-
<span className=" inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-black px-3 font-semibold text-white dark:bg-white dark:text-black sm:text-sm">
178+
<span className="inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-black px-3 font-semibold text-white dark:bg-white dark:text-black sm:text-sm">
179179
codu.co/
180180
</span>
181181
<Input
@@ -307,17 +307,17 @@ function SlideTwo({ details }: { details: UserDetails }) {
307307
};
308308

309309
return (
310-
<form className="mx-auto max-w-sm" onSubmit={handleSubmit(onFormSubmit)}>
310+
<form className="mx-auto max-w-sm" onSubmit={handleSubmit(onFormSubmit)}>
311311
<div className="min-h-[32rem]">
312-
<div className="mx-4 ">
312+
<div className="mx-4">
313313
<Heading className="mt-16">Demographic</Heading>
314314
<Subheading>
315315
This information is private, but helps us improve
316316
</Subheading>
317317
</div>
318318
<Divider className="my-4 mt-4" />
319319

320-
<div className="mx-4 mt-4 ">
320+
<div className="mx-4 mt-4">
321321
<Field>
322322
<Label>Gender</Label>
323323
<Select {...register("gender")} defaultValue="" id="gender">
@@ -339,8 +339,8 @@ function SlideTwo({ details }: { details: UserDetails }) {
339339
<Divider className="my-4 mt-4" />
340340

341341
<Fieldset>
342-
<Legend className="mx-4 ">Date of Birth</Legend>
343-
<div className="mx-4 flex justify-between ">
342+
<Legend className="mx-4">Date of Birth</Legend>
343+
<div className="mx-4 flex justify-between">
344344
<Field>
345345
<Select
346346
id="year"
@@ -477,7 +477,7 @@ function SlideThree({ details }: { details: UserDetails }) {
477477
return (
478478
<form className="mx-auto max-w-sm" onSubmit={handleSubmit(onFormSubmit)}>
479479
<div className="min-h-[32rem]">
480-
<div className="mx-4 ">
480+
<div className="mx-4">
481481
<Heading className="mt-16"> Work and education</Heading>
482482
<Subheading>
483483
This information is private but helpful to tailor our events and
@@ -486,7 +486,7 @@ function SlideThree({ details }: { details: UserDetails }) {
486486
</div>
487487
<Divider className="my-4 mt-4" />
488488
<Fieldset>
489-
<Field className="mx-4 my-4 ">
489+
<Field className="mx-4 my-4">
490490
<Label>Which best describes you?</Label>
491491

492492
<Select
@@ -510,7 +510,7 @@ function SlideThree({ details }: { details: UserDetails }) {
510510

511511
{getValues("professionalOrStudent") === "Working professional" && (
512512
<>
513-
<Field className="mx-4 my-4 ">
513+
<Field className="mx-4 my-4">
514514
<Label>Where are you working?</Label>
515515
<Input
516516
id="workplace"
@@ -524,7 +524,7 @@ function SlideThree({ details }: { details: UserDetails }) {
524524
)}
525525
</Field>
526526

527-
<Field className="mx-4 my-4 ">
527+
<Field className="mx-4 my-4">
528528
<Label>What is your job title?</Label>
529529
<Input
530530
id="job-title"
@@ -542,7 +542,7 @@ function SlideThree({ details }: { details: UserDetails }) {
542542

543543
{getValues("professionalOrStudent") === "Current student" && (
544544
<>
545-
<Field className="mx-4 my-4 ">
545+
<Field className="mx-4 my-4">
546546
<Label> What is your current level of study?</Label>
547547
<Select id="level-of-study" {...register("levelOfStudy")}>
548548
<option value="" disabled>
@@ -560,7 +560,7 @@ function SlideThree({ details }: { details: UserDetails }) {
560560
)}
561561
</Field>
562562

563-
<Field className="mx-4 my-4 ">
563+
<Field className="mx-4 my-4">
564564
<Label>What are you studying?</Label>
565565
<Input
566566
id="course"

app/(app)/alpha/new/[[...postIdArr]]/_client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const Create = () => {
129129
to find and know what your story is about.
130130
</p>
131131
</div>
132-
<div className="col-span-12 border-b border-neutral-300 pb-4">
132+
<div className="col-span-12 border-b border-neutral-300 pb-4">
133133
<Disclosure>
134134
{({ open }) => (
135135
<>
@@ -199,7 +199,7 @@ const Create = () => {
199199
</div>
200200
</Transition>
201201
{dataStatus === "loading" && postId && (
202-
<div className="bg-gray fixed left-0 top-0 z-40 flex h-screen w-screen items-center justify-center ">
202+
<div className="bg-gray fixed left-0 top-0 z-40 flex h-screen w-screen items-center justify-center">
203203
<div className="z-50 flex flex-col items-center border-2 border-black bg-white px-5 py-2 opacity-100">
204204
<div className="loader-dots relative mt-2 block h-5 w-20">
205205
<div className="absolute top-0 mt-1 h-3 w-3 rounded-full bg-gradient-to-r from-orange-400 to-pink-600 shadow-sm"></div>
@@ -222,7 +222,7 @@ const Create = () => {
222222
<div className="h-full min-h-[40rem] px-4 py-0 sm:px-6 lg:px-4 lg:py-6">
223223
{/* Start main area*/}
224224
<div className="relative h-full">
225-
<div className="bg-neutral-900 text-white shadow-xl">
225+
<div className="bg-neutral-900 text-white shadow-xl">
226226
<div className="bg-neutral-900 px-4 py-6 sm:p-6 lg:pb-8">
227227
{!body && (
228228
<Controller

app/(app)/alpha/settings/_client.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const Settings = ({ profile }: { profile: User }) => {
133133
<div className="text-neutral-700">
134134
<form onSubmit={handleSubmit(onSubmit)}>
135135
{/* Profile section */}
136-
<div className="px-4 py-6 sm:p-6 lg:pb-8 ">
136+
<div className="px-4 py-6 sm:p-6 lg:pb-8">
137137
<div>
138138
<h2 className="text-3xl font-extrabold tracking-tight text-neutral-800 dark:text-white">
139139
Profile Settings
@@ -166,7 +166,7 @@ const Settings = ({ profile }: { profile: User }) => {
166166
<div>
167167
<label htmlFor="username">Username</label>
168168
<div className="mt-1 flex shadow-sm">
169-
<span className="mt-1 flex items-center bg-neutral-800 px-3 text-sm font-semibold text-white dark:bg-white dark:text-black">
169+
<span className="mt-1 flex items-center bg-neutral-800 px-3 text-sm font-semibold text-white dark:bg-white dark:text-black">
170170
codu.co/
171171
</span>
172172
<input
@@ -196,7 +196,7 @@ const Settings = ({ profile }: { profile: User }) => {
196196
<div className="mt-1 lg:hidden">
197197
<div className="flex items-center">
198198
<div
199-
className="relative h-16 w-16 flex-shrink-0 overflow-hidden rounded-full "
199+
className="relative h-16 w-16 flex-shrink-0 overflow-hidden rounded-full"
200200
aria-hidden="true"
201201
>
202202
{profilePhoto.status === "error" ||
@@ -256,7 +256,7 @@ const Settings = ({ profile }: { profile: User }) => {
256256
htmlFor="desktop-user-photo"
257257
className="absolute inset-0 flex h-full w-full items-center justify-center bg-black bg-opacity-75 text-sm font-medium text-white opacity-0 focus-within:opacity-100 hover:opacity-100"
258258
>
259-
<div className=" text-center text-xs">
259+
<div className="text-center text-xs">
260260
Change Photo
261261
</div>
262262
<span className="sr-only"> user photo</span>

app/(app)/alpha/sponsorship/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Sponsorship = () => {
7272
Reach thousands of developers every month!
7373
</h3>
7474
</header>
75-
<section className="relative bottom-12 flex items-center justify-center gap-8 overflow-hidden sm:bottom-20 sm:gap-20 md:bottom-24 md:gap-36 lg:gap-44">
75+
<section className="relative bottom-12 flex items-center justify-center gap-8 overflow-hidden sm:bottom-20 sm:gap-20 md:bottom-24 md:gap-36 lg:gap-44">
7676
{images.map((image) => (
7777
<div
7878
key={image.alt}

app/(app)/articles/_client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ArticlesPage = () => {
6262
<>
6363
<div className="mx-2">
6464
<div className="mt-8 flex max-w-5xl items-center justify-between border-b border-b-neutral-300 pb-2 dark:border-b-neutral-600 sm:mx-auto sm:max-w-2xl lg:max-w-5xl">
65-
<h1 className="text-3xl font-bold tracking-tight text-neutral-800 dark:text-neutral-50 sm:text-4xl ">
65+
<h1 className="text-3xl font-bold tracking-tight text-neutral-800 dark:text-neutral-50 sm:text-4xl">
6666
{typeof tag === "string" ? (
6767
<div className="flex items-center justify-center">
6868
<TagIcon className="mr-3 h-6 w-6 text-neutral-800 dark:text-neutral-200" />

app/(app)/code-of-conduct/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const CodeOfConduct = () => {
88
return (
99
<div>
1010
<main className="relative bg-white p-4 shadow-lg dark:border-neutral-600 dark:border-l-pink-600 dark:bg-neutral-900">
11-
<div className="lg:max-w-8xl relative px-4 pb-16 pt-12 sm:px-6 sm:pt-16 lg:mx-auto lg:px-8 ">
11+
<div className="lg:max-w-8xl relative px-4 pb-16 pt-12 sm:px-6 sm:pt-16 lg:mx-auto lg:px-8">
1212
<div className="lg:pl-8">
13-
<div className="mx-auto max-w-prose text-base ">
13+
<div className="mx-auto max-w-prose text-base">
1414
<h1 className="mt-2 border-b-2 pb-8 text-3xl font-extrabold leading-8 tracking-tight text-black dark:text-white sm:text-6xl">
1515
Code Of Conduct
1616
</h1>

app/(app)/create/[[...paramsArr]]/_client.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ const Create = ({ session }: { session: Session }) => {
485485
</div>
486486
)}
487487

488-
<div className="col-span-12 border-b border-neutral-300 pb-4">
488+
<div className="col-span-12 border-b border-neutral-300 pb-4">
489489
<Disclosure>
490490
{({ open }) => (
491491
<>
@@ -588,7 +588,7 @@ const Create = ({ session }: { session: Session }) => {
588588
</div>
589589
</Transition>
590590
{dataStatus === "loading" && postId && (
591-
<div className="bg-gray fixed left-0 top-0 z-40 flex h-screen w-screen items-center justify-center ">
591+
<div className="bg-gray fixed left-0 top-0 z-40 flex h-screen w-screen items-center justify-center">
592592
<div className="z-50 flex flex-col items-center border-2 border-black bg-white px-5 py-2 opacity-100">
593593
<div className="loader-dots relative mt-2 block h-5 w-20">
594594
<div className="absolute top-0 mt-1 h-3 w-3 rounded-full bg-gradient-to-r from-orange-400 to-pink-600 shadow-sm"></div>
@@ -607,7 +607,7 @@ const Create = ({ session }: { session: Session }) => {
607607
<div className="mx-auto w-full max-w-7xl flex-grow lg:flex xl:px-8">
608608
{/* Left sidebar & main wrapper */}
609609
<div className="min-w-0 flex-1 xl:flex">
610-
<div className="xl:w-64 xl:flex-shrink-0 ">
610+
<div className="xl:w-64 xl:flex-shrink-0">
611611
<div className="h-full py-6 pl-4 pr-6 sm:pl-6 lg:px-4 xl:pl-0">
612612
{/* Start left column area */}
613613
<div className="relative h-full">
@@ -635,7 +635,7 @@ const Create = ({ session }: { session: Session }) => {
635635
</div>
636636
</div>
637637
<div className="lg:min-w-0 lg:flex-1">
638-
<div className="h-full px-4 py-0 sm:px-6 lg:px-4 lg:py-6 ">
638+
<div className="h-full px-4 py-0 sm:px-6 lg:px-4 lg:py-6">
639639
{/* Start main area*/}
640640
<div className="relative h-full">
641641
<div className="bg-white text-white shadow dark:bg-neutral-900">
@@ -663,7 +663,7 @@ const Create = ({ session }: { session: Session }) => {
663663
<div className="mb-4 ml-2 flex items-center gap-2">
664664
<label
665665
htmlFor="file-input"
666-
className={`flex flex-row items-center gap-1 rounded-md border p-2 text-sm ${uploadStatus === "loading" ? "border-neutral-600 font-medium text-neutral-600 hover:cursor-not-allowed dark:border-neutral-500 dark:text-neutral-500" : "border-neutral-500 font-medium text-neutral-500 hover:bg-neutral-200 dark:border-neutral-600 dark:text-neutral-600 hover:dark:bg-neutral-800 hover:dark:text-neutral-400"} `}
666+
className={`flex flex-row items-center gap-1 rounded-md border p-2 text-sm ${uploadStatus === "loading" ? "border-neutral-600 font-medium text-neutral-600 hover:cursor-not-allowed dark:border-neutral-500 dark:text-neutral-500" : "border-neutral-500 font-medium text-neutral-500 hover:bg-neutral-200 dark:border-neutral-600 dark:text-neutral-600 hover:dark:bg-neutral-800 hover:dark:text-neutral-400"} `}
667667
>
668668
{uploadStatus === "loading" ? (
669669
<LoaderCircle

app/(app)/error.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ export default function NotFound() {
3737
</Link>
3838
</div>
3939
<div className="mt-6 text-base text-neutral-500">
40-
Or{" "}
41-
<span className=" font-semibold">if you are feeling helpful</span>,
42-
send us more details by opening an issue{" "}
40+
Or <span className="font-semibold">if you are feeling helpful</span>
41+
, send us more details by opening an issue{" "}
4342
<a
4443
className="bg-gradient-to-r from-orange-400 to-pink-600 bg-clip-text text-base font-semibold tracking-wide text-transparent"
4544
target="_blank"

0 commit comments

Comments
 (0)