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