Move input button styles hook to top level
All checks were successful
Test, Build, Deploy / Test, Build, and Deploy (push) Successful in 1m2s
Test, Build, Deploy / Create Sentry Release (push) Successful in 5s

This commit is contained in:
2026-04-14 03:49:06 -04:00
parent b6de1aa462
commit 12f91dca7d

View File

@@ -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}