Skip to content

Commit

Permalink
use unprefixed props in website
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kim committed Feb 4, 2024
1 parent 5df100a commit 5131ea7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions website/src/clients/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ function* Playground(this: Context, {}) {
value=${exampleName}
onchange=${onexamplechange}
>
<option value="" $key=${name}>Load an example...</option>
<option value="" key=${name}>Load an example...</option>
${examples.map(
({name, label}) => jsx`
<option value=${name} $key=${name}>${label}</option>
<option value=${name} key=${name}>${label}</option>
`,
)}
</select>
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/code-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export function* CodeEditor(
`
}
<${ContentArea}
$ref=${(el: ContentAreaElement) => (area = el)}
ref=${(el: ContentAreaElement) => (area = el)}
value=${value}
renderSource=${renderSource}
selectionRange=${selectionRange}
Expand Down Expand Up @@ -415,7 +415,7 @@ export function* CodeEditor(
// TODO: using the virtualizer start and ends with static is breaking paste
return jsx`
<${Line}
$key=${keyer.keyAt(index) + "line"}
key=${keyer.keyAt(index) + "line"}
line=${line}
lineNumber=${l}
/>
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/code-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ export function* CodePreview(
`
}
<iframe
$key=${iframeID}
$ref=${(el: HTMLIFrameElement) => (iframe = el)}
key=${iframeID}
ref=${(el: HTMLIFrameElement) => (iframe = el)}
class="
playground-iframe
${css`
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/contentarea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export function* ContentArea(
yield jsx`
<content-area
...${rest}
$ref=${(el: ContentAreaElement) => (area = el)}
$static=${composing}
ref=${(el: ContentAreaElement) => (area = el)}
static=${composing}
>${children}</content-area>
`;

Expand Down
2 changes: 1 addition & 1 deletion website/src/components/inline-code-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function* InlineCodeBlock(
max-width: 100%;
`}>
<${CodeEditor}
$static
static
value=${value}
lang=${lang}
editable=${editable}
Expand Down

0 comments on commit 5131ea7

Please sign in to comment.