Merged in fix/3697-prettier-configs (pull request #3396)
fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Button as ButtonRAC } from 'react-aria-components'
|
||||
import { Button as ButtonRAC } from "react-aria-components"
|
||||
|
||||
import { MaterialIcon } from '../Icons/MaterialIcon'
|
||||
import { IconButtonProps } from './types'
|
||||
import { variants } from './variants'
|
||||
import { MaterialIcon } from "../Icons/MaterialIcon"
|
||||
import { IconButtonProps } from "./types"
|
||||
import { variants } from "./variants"
|
||||
|
||||
export function IconButton({
|
||||
variant,
|
||||
@@ -30,15 +30,15 @@ export function IconButton({
|
||||
)
|
||||
}
|
||||
|
||||
function getIconSize(size: IconButtonProps['size']) {
|
||||
function getIconSize(size: IconButtonProps["size"]) {
|
||||
switch (size) {
|
||||
case 'sm':
|
||||
case "sm":
|
||||
return 16
|
||||
case 'md':
|
||||
case "md":
|
||||
return 20
|
||||
case 'xl':
|
||||
case "xl":
|
||||
return 28
|
||||
case 'lg':
|
||||
case "lg":
|
||||
default:
|
||||
return 24
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user