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,24 +1,24 @@
|
||||
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
||||
import type { Meta, StoryObj } from "@storybook/nextjs-vite"
|
||||
|
||||
import { TripAdvisorChip } from './index'
|
||||
import { TripAdvisorChip } from "./index"
|
||||
|
||||
const meta: Meta<typeof TripAdvisorChip> = {
|
||||
title: 'Product Components/TripAdvisorChip',
|
||||
title: "Product Components/TripAdvisorChip",
|
||||
component: TripAdvisorChip,
|
||||
argTypes: {
|
||||
rating: {
|
||||
control: { type: 'number', min: 0, max: 5, step: 0.1 },
|
||||
control: { type: "number", min: 0, max: 5, step: 0.1 },
|
||||
},
|
||||
size: {
|
||||
control: { type: 'select' },
|
||||
options: ['default', 'small'],
|
||||
control: { type: "select" },
|
||||
options: ["default", "small"],
|
||||
},
|
||||
color: {
|
||||
control: { type: 'select' },
|
||||
options: ['default', 'subtle'],
|
||||
control: { type: "select" },
|
||||
options: ["default", "subtle"],
|
||||
},
|
||||
wrapper: {
|
||||
control: { type: 'boolean' },
|
||||
control: { type: "boolean" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -29,8 +29,8 @@ type Story = StoryObj<typeof TripAdvisorChip>
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
rating: 4.5,
|
||||
size: 'default',
|
||||
color: 'default',
|
||||
size: "default",
|
||||
color: "default",
|
||||
wrapper: false,
|
||||
},
|
||||
}
|
||||
@@ -38,8 +38,8 @@ export const Default: Story = {
|
||||
export const WithWrapper: Story = {
|
||||
args: {
|
||||
rating: 4.5,
|
||||
size: 'default',
|
||||
color: 'default',
|
||||
size: "default",
|
||||
color: "default",
|
||||
wrapper: true,
|
||||
},
|
||||
}
|
||||
@@ -47,8 +47,8 @@ export const WithWrapper: Story = {
|
||||
export const Small: Story = {
|
||||
args: {
|
||||
rating: 4.5,
|
||||
size: 'small',
|
||||
color: 'default',
|
||||
size: "small",
|
||||
color: "default",
|
||||
wrapper: true,
|
||||
},
|
||||
}
|
||||
@@ -56,8 +56,8 @@ export const Small: Story = {
|
||||
export const Subtle: Story = {
|
||||
args: {
|
||||
rating: 4.5,
|
||||
size: 'default',
|
||||
color: 'subtle',
|
||||
size: "default",
|
||||
color: "subtle",
|
||||
wrapper: false,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cva, type VariantProps } from 'class-variance-authority'
|
||||
import TripadvisorIcon from '../Icons/Customised/Socials/Tripadvisor'
|
||||
import styles from './tripAdvisorChip.module.css'
|
||||
import { Typography } from '../Typography'
|
||||
import { cva, type VariantProps } from "class-variance-authority"
|
||||
import TripadvisorIcon from "../Icons/Customised/Socials/Tripadvisor"
|
||||
import styles from "./tripAdvisorChip.module.css"
|
||||
import { Typography } from "../Typography"
|
||||
|
||||
const container = cva(styles.container, {
|
||||
variants: {
|
||||
@@ -11,7 +11,7 @@ const container = cva(styles.container, {
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
size: 'default',
|
||||
size: "default",
|
||||
},
|
||||
})
|
||||
|
||||
@@ -27,8 +27,8 @@ const chip = cva(styles.tripAdvisor, {
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
size: 'default',
|
||||
color: 'default',
|
||||
size: "default",
|
||||
color: "default",
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user