mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Rewrite old useStyles2 pattern to use new pattern (#76136)
* Rewrite old useStyles2 pattern to use new pattern * fix lint from used imports
This commit is contained in:
@@ -35,7 +35,7 @@ export const RolePickerInput = ({
|
||||
onQueryChange,
|
||||
...rest
|
||||
}: InputProps): JSX.Element => {
|
||||
const styles = useStyles2((theme) => getRolePickerInputStyles(theme, false, !!isFocused, !!disabled, false));
|
||||
const styles = useStyles2(getRolePickerInputStyles, false, !!isFocused, !!disabled, false);
|
||||
const inputRef = useRef<HTMLInputElement | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -25,7 +25,7 @@ export const UpgradeBox = ({
|
||||
size = 'md',
|
||||
...htmlProps
|
||||
}: Props) => {
|
||||
const styles = useStyles2((theme) => getUpgradeBoxStyles(theme, size));
|
||||
const styles = useStyles2(getUpgradeBoxStyles, size);
|
||||
|
||||
useEffect(() => {
|
||||
reportExperimentView(`feature-highlights-${featureId}`, 'test', eventVariant);
|
||||
|
||||
Reference in New Issue
Block a user