Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit d7112ec

Browse files
committed
chore: fmt
1 parent 3b2784e commit d7112ec

File tree

45 files changed

+102
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+102
-104
lines changed

apps/nextjs/components/ActiveLink/ActiveLink.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
// Source: <https://github.com/vercel/next.js/blob/29f20d30fd098d30cbd73352aec995191b88fa74/examples/active-class-name/components/ActiveLink.tsx>
66

7-
import { useRouter } from 'next/router'
8-
import Link, { LinkProps } from 'next/link'
9-
import React, { useState, useEffect, ReactElement, Children } from 'react'
7+
import {useRouter} from 'next/router'
8+
import Link, {LinkProps} from 'next/link'
9+
import React, {useState, useEffect, ReactElement, Children} from 'react'
1010

1111
export type ActiveLinkProps = LinkProps & {
1212
children: ReactElement
@@ -18,7 +18,7 @@ export default function ActiveLink({
1818
activeClassName,
1919
...props
2020
}: ActiveLinkProps) {
21-
const { asPath, isReady } = useRouter()
21+
const {asPath, isReady} = useRouter()
2222

2323
const child = Children.only(children)
2424
const childClassName = child.props.className || ''

apps/nextjs/components/ActiveLink/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// SPDX-FileCopyrightText: 2023 Vercel
33
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
44

5-
export { default as ActiveLink } from './ActiveLink'
6-
export type { ActiveLinkProps } from './ActiveLink'
5+
export {default as ActiveLink} from './ActiveLink'
6+
export type {ActiveLinkProps} from './ActiveLink'

apps/nextjs/components/Blocks/ClassicEditorBlock/ClassicEditorBlock.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77

8-
export default function ClassicEditorBlock({
9-
block: { innerHTML },
10-
}: BlockProps) {
11-
return <div dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }} />
8+
export default function ClassicEditorBlock({block: {innerHTML}}: BlockProps) {
9+
return <div dangerouslySetInnerHTML={{__html: innerHTML ?? ''}} />
1210
}

apps/nextjs/components/Blocks/Heading/Heading.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77

8-
export default function Heading({ block: { innerHTML } }: BlockProps) {
9-
return <h3 dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }} />
8+
export default function Heading({block: {innerHTML}}: BlockProps) {
9+
return <h3 dangerouslySetInnerHTML={{__html: innerHTML ?? ''}} />
1010
}

apps/nextjs/components/Blocks/List/List.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77

88
type Props = BlockProps & {
99
ordered?: boolean
1010
reversed?: boolean
1111
start?: number
1212
}
1313

14-
export default function List({ block: { innerHTML }, ...props }: Props) {
14+
export default function List({block: {innerHTML}, ...props}: Props) {
1515
if (props.ordered) {
1616
return (
1717
<ol
18-
dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }}
18+
dangerouslySetInnerHTML={{__html: innerHTML ?? ''}}
1919
reversed={props.reversed}
2020
start={props.start}
2121
/>
2222
)
2323
}
2424

25-
return <ul dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }} />
25+
return <ul dangerouslySetInnerHTML={{__html: innerHTML ?? ''}} />
2626
}

apps/nextjs/components/Blocks/Paragraph/Paragraph.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77

8-
export default function Paragraph({ block: { innerHTML } }: BlockProps) {
9-
return <p dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }} />
8+
export default function Paragraph({block: {innerHTML}}: BlockProps) {
9+
return <p dangerouslySetInnerHTML={{__html: innerHTML ?? ''}} />
1010
}

apps/nextjs/components/Blocks/Quote/Quote.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77
import styles from './Quote.module.css'
88

99
/**
@@ -47,7 +47,7 @@ type Props = BlockProps & {
4747
className?: string
4848
}
4949

50-
export default function Quote({ block: { innerHTML }, ...props }: Props) {
50+
export default function Quote({block: {innerHTML}, ...props}: Props) {
5151
let style = styles.container
5252

5353
switch (props.className) {
@@ -62,7 +62,7 @@ export default function Quote({ block: { innerHTML }, ...props }: Props) {
6262
return (
6363
<blockquote
6464
className={style}
65-
dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }}
65+
dangerouslySetInnerHTML={{__html: innerHTML ?? ''}}
6666
/>
6767
)
6868
}

apps/nextjs/components/Blocks/Table/Table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77

8-
export default function Table({ block: { innerHTML }, ...props }: BlockProps) {
8+
export default function Table({block: {innerHTML}, ...props}: BlockProps) {
99
return (
1010
<table
1111
cellPadding={0}
1212
cellSpacing={0}
13-
dangerouslySetInnerHTML={{ __html: innerHTML ?? '' }}
13+
dangerouslySetInnerHTML={{__html: innerHTML ?? ''}}
1414
{...props}
1515
/>
1616
)

apps/nextjs/components/Blocks/UnsupportedBlock/UnsupportedBlock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
//
44
// SPDX-License-Identifier: GPL-3.0-or-later OR MIT
55

6-
import { BlockProps } from '../index'
6+
import {BlockProps} from '../index'
77
import styles from './UnsupportedBlock.module.css'
88

99
export default function UnsupportedBlock({
10-
block: { name, tagName, attributes = [], innerBlocks = [], outerHTML },
10+
block: {name, tagName, attributes = [], innerBlocks = [], outerHTML},
1111
}: BlockProps) {
1212
const html = outerHTML
1313

apps/nextjs/components/Buttons/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
import clsx from 'clsx'
5-
import type { ClassValue } from 'clsx'
5+
import type {ClassValue} from 'clsx'
66
import * as React from 'react'
77

88
export const COLORS = {

0 commit comments

Comments
 (0)