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,14 +1,14 @@
|
||||
'use client'
|
||||
"use client"
|
||||
|
||||
import { variants } from './variants'
|
||||
import { variants } from "./variants"
|
||||
|
||||
import { cx, type VariantProps } from 'class-variance-authority'
|
||||
import type { HTMLAttributes } from 'react'
|
||||
import { Typography } from '../Typography'
|
||||
import { cx, type VariantProps } from "class-variance-authority"
|
||||
import type { HTMLAttributes } from "react"
|
||||
import { Typography } from "../Typography"
|
||||
|
||||
interface FakeButtonProps
|
||||
extends
|
||||
Omit<HTMLAttributes<HTMLSpanElement>, 'color'>,
|
||||
Omit<HTMLAttributes<HTMLSpanElement>, "color">,
|
||||
VariantProps<typeof variants> {
|
||||
isDisabled?: boolean
|
||||
}
|
||||
@@ -36,9 +36,9 @@ export function FakeButton({
|
||||
return (
|
||||
<Typography
|
||||
variant={
|
||||
size === 'sm'
|
||||
? 'Body/Supporting text (caption)/smBold'
|
||||
: 'Body/Paragraph/mdBold'
|
||||
size === "sm"
|
||||
? "Body/Supporting text (caption)/smBold"
|
||||
: "Body/Paragraph/mdBold"
|
||||
}
|
||||
>
|
||||
<span
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import { withButton } from '../Button'
|
||||
import { withButton } from "../Button"
|
||||
|
||||
import buttonStyles from '../Button/button.module.css'
|
||||
import buttonStyles from "../Button/button.module.css"
|
||||
|
||||
export const variants = cva(
|
||||
buttonStyles.button,
|
||||
|
||||
Reference in New Issue
Block a user