Skip to content

Commit

Permalink
Mark deprecated props/events/methods
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Jan 25, 2024
1 parent 33a327b commit aa2edc0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/components/BrickDocEvents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ export default function BrickDocEvents({
{events.map((event) => (
<tr key={event.name}>
<td>
<code>{event.name}</code>
<code
title={
typeof event.deprecated === "string"
? event.deprecated
: undefined
}
>
{event.deprecated ? <del>{event.name}</del> : event.name}
</code>
</td>
<td>{event.description}</td>
<td>
Expand Down
10 changes: 9 additions & 1 deletion src/components/BrickDocMethods/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ export default function BrickDocMethods({
{methods.map((method) => (
<tr key={method.name}>
<td>
<code>{method.name}</code>
<code
title={
typeof method.deprecated === "string"
? method.deprecated
: undefined
}
>
{method.deprecated ? <del>{method.name}</del> : method.name}
</code>
</td>
<td>{method.description}</td>
<td>
Expand Down
10 changes: 9 additions & 1 deletion src/components/BrickDocProperties/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ export default function BrickDocProperties({
{properties.map((prop) => (
<tr key={prop.name}>
<td>
<code>{prop.name}</code>
<code
title={
typeof prop.deprecated === "string"
? prop.deprecated
: undefined
}
>
{prop.deprecated ? <del>{prop.name}</del> : prop.name}
</code>
</td>
<td>{prop.description}</td>
<td>
Expand Down

0 comments on commit aa2edc0

Please sign in to comment.