-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/sass-1.69.5
- Loading branch information
Showing
42 changed files
with
314 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import prisma from "@/prisma" | ||
import { NextRequest, NextResponse } from "next/server" | ||
|
||
type ParamType = { | ||
params: { | ||
id: number | ||
} | ||
} | ||
|
||
export async function GET(request: NextRequest, { params }: ParamType) { | ||
const user = await prisma.user.findUnique({ | ||
where: { | ||
id: Number(params.id) | ||
} | ||
}) | ||
if (!user) return new NextResponse("user not found", { | ||
status: 404, | ||
}) | ||
return NextResponse.json(user) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/app/components/Checkbox/Checkbox.js → src/app/components/Checkbox/Checkbox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { v4 as uuid } from 'uuid' | ||
import styles from "./FormInput.module.scss" | ||
|
||
type PropTypes = { | ||
label?: string, | ||
type?: string, | ||
id?: string, | ||
name: string, | ||
} | ||
|
||
function FormInput({label, type, id, name} : PropTypes) { | ||
label ??= '' | ||
type ??= (type !== undefined) ? type : 'text' | ||
id ??= "id_input_" + uuid() | ||
|
||
return <div className={styles.Input}> | ||
<input type={type} id={id} name={name} required/> | ||
<label htmlFor={id}>{label}</label> | ||
</div> | ||
|
||
} | ||
|
||
export default FormInput |
12 changes: 8 additions & 4 deletions
12
src/app/components/GoogleMap/GoogleMap.js → src/app/components/GoogleMap/GoogleMap.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.