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,17 +1,17 @@
|
||||
import { VariantProps } from 'class-variance-authority'
|
||||
import { Typography } from '../../Typography'
|
||||
import { variants } from './variants'
|
||||
import { VariantProps } from "class-variance-authority"
|
||||
import { Typography } from "../../Typography"
|
||||
import { variants } from "./variants"
|
||||
|
||||
import { VideoPlayer } from '..'
|
||||
import { VideoPlayerProps } from '../types'
|
||||
import styles from './videoWithCard.module.css'
|
||||
import { VideoPlayer } from ".."
|
||||
import { VideoPlayerProps } from "../types"
|
||||
import styles from "./videoWithCard.module.css"
|
||||
interface TextCardProps {
|
||||
variant: 'text'
|
||||
variant: "text"
|
||||
heading: string
|
||||
text?: string
|
||||
}
|
||||
interface QuoteCardProps {
|
||||
variant: 'quote'
|
||||
variant: "quote"
|
||||
quote: string
|
||||
author: string
|
||||
authorDescription?: string
|
||||
@@ -19,7 +19,7 @@ interface QuoteCardProps {
|
||||
|
||||
type VideoWithCardProps = VariantProps<typeof variants> &
|
||||
(TextCardProps | QuoteCardProps) & {
|
||||
video: Pick<VideoPlayerProps, 'sources' | 'captions' | 'focalPoint'>
|
||||
video: Pick<VideoPlayerProps, "sources" | "captions" | "focalPoint">
|
||||
}
|
||||
|
||||
export function VideoWithCard(props: VideoWithCardProps) {
|
||||
@@ -42,7 +42,7 @@ export function VideoWithCard(props: VideoWithCardProps) {
|
||||
}
|
||||
|
||||
function CardContent(props: VideoWithCardProps) {
|
||||
if (props.variant === 'quote') {
|
||||
if (props.variant === "quote") {
|
||||
const { quote, author, authorDescription } = props
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user