Skip to content

Commit 2efab42

Browse files
committed
docs: fix up some issues with the common package demos
1 parent 7eb2474 commit 2efab42

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

site/src/routes/demo/common/_ClassMap.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div>
22
<Button
33
class={classMap({
4+
'my-button': true,
45
big: big,
56
[color]: true,
67
})}
@@ -35,6 +36,10 @@
3536
</script>
3637

3738
<style>
39+
* :global(.my-button) {
40+
margin: 0.5em;
41+
}
42+
3843
* :global(.red) {
3944
color: red;
4045
}

site/src/routes/demo/common/_UseActionsPannable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import TinyGesture from 'tinygesture';
22
import { tweened } from 'svelte/motion';
33
import { cubicInOut } from 'svelte/easing';
44

5-
export default function (node) {
5+
export default function Pannable(node) {
66
const gesture = new TinyGesture(node);
77
let animationFrame = null;
88
const preventDefault = (event) => {

site/src/routes/demo/common/_UseActionsSwipeable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import TinyGesture from 'tinygesture';
22

3-
export default function (node) {
3+
export default function Swipeable(node) {
44
const gesture = new TinyGesture(node);
55
let timeout;
66
const preventDefault = (event) => {

site/src/routes/demo/common/_UseActionsTappable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import TinyGesture from 'tinygesture';
22

3-
export default function (node, options) {
3+
export default function Tappable(node, options) {
44
const gesture = new TinyGesture(node);
55
let tapTimeout;
66
let pressTimeout;

site/src/routes/demo/common/index.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
component={ForwardEventsBuilder}
108108
files={[
109109
'common/_ForwardEventsBuilder.svelte',
110-
'common/_ForwardEventsBuilderComponent.js',
110+
'common/_ForwardEventsBuilderComponent.svelte',
111111
]}
112112
>
113113
Forward Events Builder
@@ -144,7 +144,7 @@
144144
component={UseActions}
145145
files={[
146146
'common/_UseActions.svelte',
147-
'common/_UseActionsComponent.js',
147+
'common/_UseActionsComponent.svelte',
148148
'common/_UseActionsPannable.js',
149149
'common/_UseActionsSwipeable.js',
150150
'common/_UseActionsTappable.js',

0 commit comments

Comments
 (0)