Skip to content

Commit 7baead2

Browse files
committed
cleanup: old attr syntax
1 parent d8256f9 commit 7baead2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

s/components/button/showcase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const buttonShowcase = Showcase({
4747
],
4848
style: css``,
4949
presentation: views => html`
50-
${views.ShinyButton.props().attr("gradient", true).children("button").render()}
50+
${views.ShinyButton.props().attr("gradient").children("button").render()}
5151
`,
5252
},
5353
{

s/demo/views/demonstration/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Demonstration = view(use => (options: {
4040
${options.snippets.map(([label]) => (
4141
auraViews.ShinyButton
4242
.props()
43-
.attr("plain", true)
43+
.attr("plain")
4444
.children(label.button)
4545
.render()
4646
))}

s/demo/views/exhibit/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Exhibit = view(use => (
4040
.children(exhibit.snippets.map(s =>
4141
auraViews.ShinyButton
4242
.props()
43-
.attr("plain", true)
43+
.attr("plain")
4444
.children(s.label)
4545
.render()
4646
))

s/demo/views/showcase/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const Showcase = view(use => (options: {
3131
.children(options.exhibits.map(p =>
3232
auraViews.ShinyButton
3333
.props()
34-
.attr("sad", true)
34+
.attr("sad")
3535
.children(p.label)
3636
.render()
3737
))

0 commit comments

Comments
 (0)