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