fix centering
This commit is contained in:
parent
56563802be
commit
4494bd74ec
@ -21,16 +21,14 @@ type PlayerSearchProps = {
|
|||||||
* @param query the query to search for
|
* @param query the query to search for
|
||||||
* @returns the search component jsx
|
* @returns the search component jsx
|
||||||
*/
|
*/
|
||||||
const PlayerSearch = ({
|
const PlayerSearch = ({ query }: PlayerSearchProps): ReactElement => {
|
||||||
query,
|
|
||||||
}: PlayerSearchProps): ReactElement => {
|
|
||||||
const handleRedirect = async (form: FormData): Promise<void> => {
|
const handleRedirect = async (form: FormData): Promise<void> => {
|
||||||
"use server";
|
"use server";
|
||||||
redirect(`/player/${form.get("query")}`);
|
redirect(`/player/${form.get("query")}`);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
className="flex flex-col gap-7 items-center"
|
className="flex flex-col gap-7 justify-center items-center"
|
||||||
action={handleRedirect}
|
action={handleRedirect}
|
||||||
>
|
>
|
||||||
<div className="w-full flex flex-col gap-3">
|
<div className="w-full flex flex-col gap-3">
|
||||||
|
@ -44,7 +44,7 @@ const ServerSearch = ({
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
className="flex flex-col gap-7 items-center"
|
className="flex flex-col gap-7 justify-center items-center"
|
||||||
action={handleRedirect}
|
action={handleRedirect}
|
||||||
>
|
>
|
||||||
<div className="w-full flex gap-2">
|
<div className="w-full flex gap-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user