Skip to content

Commit 06cbb0a

Browse files
committed
Fixed formatting.
1 parent 98cd0b2 commit 06cbb0a

File tree

2 files changed

+31
-32
lines changed

2 files changed

+31
-32
lines changed

packages/block-editor-utils/CHANGELOG.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,16 @@
4646

4747
```js
4848
// Component.js
49-
5049
Component.config = {
51-
name: 'CreateBlockBlockB',
52-
editorFields: {
53-
textArea: {
54-
type: 'string',
55-
label: 'My Message',
56-
location: 'editor',
57-
control: 'textarea', // <--- Render a TextAreaControl field in the Gutenberg editor
58-
},
59-
},
50+
name: 'CreateBlockBlockB',
51+
editorFields: {
52+
textArea: {
53+
type: 'string',
54+
label: 'My Message',
55+
location: 'editor',
56+
control: 'textarea', // <--- Render a TextAreaControl field in the Gutenberg editor
57+
},
58+
},
6059
};
6160
```
6261

@@ -90,9 +89,9 @@
9089

9190
```js
9291
<div
93-
style={styles}
94-
className="rich-text"
95-
dangerouslySetInnerHTML={{ __html: attributes.richText }}
92+
style={styles}
93+
className="rich-text"
94+
dangerouslySetInnerHTML={{ __html: attributes.richText }}
9695
/>
9796
```
9897

@@ -143,9 +142,9 @@
143142
import save from './save';
144143

145144
registerFaustBlock(MyFirstBlock, {
146-
blockJson: metadata,
147-
editFn: Edit,
148-
saveFn: save,
145+
blockJson: metadata,
146+
editFn: Edit,
147+
saveFn: save,
149148
});
150149
```
151150

packages/faustwp-core/CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
export default function Sitemap() {}
6363

6464
export function getServerSideProps(ctx) {
65-
return getSitemapProps(ctx, {
66-
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
67-
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
68-
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
69-
});
65+
return getSitemapProps(ctx, {
66+
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
67+
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
68+
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
69+
});
7070
}
7171
```
7272

@@ -170,7 +170,7 @@
170170
171171
```jsx
172172
<ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}>
173-
Log Out
173+
Log Out
174174
</ToolbarItem>
175175
```
176176
@@ -276,18 +276,18 @@
276276
import { FaustPage } from '@faustwp/core';
277277

278278
type GetPageData = {
279-
generalSettings: {
280-
title: string;
281-
};
279+
generalSettings: {
280+
title: string;
281+
};
282282
};
283283

284284
type PageProps = {
285-
myProp: string;
285+
myProp: string;
286286
};
287287

288288
const Page: FaustPage<GetPageData, PageProps> = (props) => {
289-
const { myProp, data } = props;
290-
return <></>;
289+
const { myProp, data } = props;
290+
return <></>;
291291
};
292292
```
293293
@@ -356,9 +356,9 @@
356356
export default function Sitemap() {}
357357

358358
export function getServerSideProps(context) {
359-
return getSitemapProps(context, {
360-
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
361-
});
359+
return getSitemapProps(context, {
360+
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
361+
});
362362
}
363363
```
364364
@@ -388,7 +388,7 @@
388388
import { FaustHooks, FaustPlugin } from '@faustwp/core';
389389

390390
export class MyPlugin implements FaustPlugin {
391-
apply(hooks: FaustHooks) {}
391+
apply(hooks: FaustHooks) {}
392392
}
393393
```
394394

0 commit comments

Comments
 (0)