resolve mobile search mod button
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -135,12 +135,14 @@ export function Button({
|
||||
disabled,
|
||||
variant = 'default',
|
||||
title,
|
||||
type = 'button',
|
||||
}: {
|
||||
children: ReactNode;
|
||||
onClick?: () => void;
|
||||
disabled?: boolean;
|
||||
variant?: 'default' | 'accent' | 'danger';
|
||||
title?: string;
|
||||
type?: 'button' | 'submit';
|
||||
}) {
|
||||
const variants = {
|
||||
default:
|
||||
@@ -150,7 +152,7 @@ export function Button({
|
||||
} as const;
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
type={type}
|
||||
title={title}
|
||||
onClick={onClick}
|
||||
disabled={disabled}
|
||||
|
||||
@@ -236,7 +236,7 @@ function WorkshopBrowser({
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
<Button variant="accent" disabled={isFetching}>
|
||||
<Button variant="accent" type="submit" disabled={isFetching}>
|
||||
{isFetching ? 'Loading…' : 'Search'}
|
||||
</Button>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user