Skip to content

Commit

Permalink
chore: format (#2398)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
emyarod and kodiakhq[bot] authored Jun 8, 2021
1 parent 51d5946 commit 6fe3095
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 23 deletions.
20 changes: 10 additions & 10 deletions src/components/ComponentDemo/ComponentDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ComponentDemo = ({ children, src, scope, noInline, components }) => {
return currentVariant.props.children;
});
};

const labelText = `Live editor for the ${components[0].label} component`;

// TODO max width editor handle multiple clicks use regex for individual props?
Expand Down Expand Up @@ -166,15 +166,15 @@ const ComponentDemo = ({ children, src, scope, noInline, components }) => {

<Code links={links} code={code} src={src} className={codeRow}>
<label htmlFor="live-editor-label">
<span className="live-editor-label">{labelText}</span>
</label>
<LiveEditor
padding={16}
style={{ overflowX: 'auto', whiteSpace: 'pre' }}
onChange={(updatedCode) => setCode(updatedCode)}
className={editorContainer}
textareaId="live-editor-label"
/>
<span className="live-editor-label">{labelText}</span>
</label>
<LiveEditor
padding={16}
style={{ overflowX: 'auto', whiteSpace: 'pre' }}
onChange={(updatedCode) => setCode(updatedCode)}
className={editorContainer}
textareaId="live-editor-label"
/>
</Code>
{knobs && (
<>
Expand Down
4 changes: 2 additions & 2 deletions src/data/nav-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
path: /patterns/overflow-content/
- title: Search
path: /patterns/search-pattern/
# - title: Status indicators
# path: /patterns/status-indicator-pattern/
# - title: Status indicators
# path: /patterns/status-indicator-pattern/
- title: Text toolbar
path: /patterns/text-toolbar-pattern/
- title: Community assets
Expand Down
12 changes: 6 additions & 6 deletions src/pages/all-about-carbon/what-is-carbon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ community of contributors.

A design system is a collection of pre-built, reusable assets—components,
patterns, guidance, and code—that allows its users to build consistent digital
experiences faster. By using the pre-built and universal assets of Carbon, the time teams spend
designing and building is minimized. Instead of building and re-building basic
elements, they can spend that time customizing their products to address
specific client use cases.
experiences faster. By using the pre-built and universal assets of Carbon, the
time teams spend designing and building is minimized. Instead of building and
re-building basic elements, they can spend that time customizing their products
to address specific client use cases.

### Carbon is open source

Carbon is funded and built by IBM, which means we build for the company’s
business needs, but we’ve made it open source for anyone to use and contribute
back to. While being primarily open source, Carbon also serves various parts of the IBM
business that follow an inner source model.
back to. While being primarily open source, Carbon also serves various parts of
the IBM business that follow an inner source model.

## How Carbon works

Expand Down
4 changes: 3 additions & 1 deletion src/pages/developing/angular-tutorial/step-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ the data table rows.

```javascript path=src/app/repositories/repo-table/repo-table.component.ts
// If we're here, we've got our data!
this.model.data = this.prepareData(response.data.organization.repositories.nodes);
this.model.data = this.prepareData(
response.data.organization.repositories.nodes
);
```

Then, in `ngOnInit()` delete the static rows since we no longer need them.
Expand Down
8 changes: 4 additions & 4 deletions src/pages/developing/angular-tutorial/step-5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ first.
npm run build
```

Looking at `package.json`, you'll find `ng build`. This
builds the app for production to the `dist` folder. It bundles Angular in
production mode and optimizes the build for the best performance. It even goes
so far to minify files and include hashes in filenames for caching.
Looking at `package.json`, you'll find `ng build`. This builds the app for
production to the `dist` folder. It bundles Angular in production mode and
optimizes the build for the best performance. It even goes so far to minify
files and include hashes in filenames for caching.

As a lot of this may seem like magic since the build configuration came from
Create React App, go ahead and check out their
Expand Down

1 comment on commit 6fe3095

@vercel
Copy link

@vercel vercel bot commented on 6fe3095 Jun 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.