Move input button styles hook to top level
This commit is contained in:
@@ -51,6 +51,9 @@ export default function () {
|
||||
const toast = useToast();
|
||||
const [uploading, setUploading] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const inputSelectorProps = useMultiStyleConfig("Button", {
|
||||
colorScheme: "blue",
|
||||
});
|
||||
const fileTypes: { [k: string]: string } = {
|
||||
avif: "image/avif",
|
||||
gif: "image/gif",
|
||||
@@ -312,9 +315,7 @@ export default function () {
|
||||
"::file-selector-button": {
|
||||
border: "none",
|
||||
outline: "none",
|
||||
...useMultiStyleConfig("Button", {
|
||||
colorScheme: "blue",
|
||||
}),
|
||||
...inputSelectorProps,
|
||||
},
|
||||
}}
|
||||
multiple={true}
|
||||
|
||||
Reference in New Issue
Block a user