Skip to content

Commit a4b73bf

Browse files
committed
fix(component): add size prop to the component to prevent type errors
the rtk-clock component is missing the size property so there's an error type when using the prop because it's missing in the type definition. the styles are defined and properly applied though. fix #48
1 parent 6111b77 commit a4b73bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/components/rtk-clock/rtk-clock.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component, Host, h, Prop, Watch, State } from '@stencil/core';
22
import { defaultIconPack, IconPack } from '../../lib/icons';
33
import { SyncWithStore } from '../../utils/sync-with-store';
44
import { Meeting } from '../../types/rtk-client';
5+
import { Size } from '../../types/props';
56

67
const addZero = (n: number) => Math.trunc(n).toString().padStart(2, '0');
78

@@ -27,6 +28,9 @@ export class RtkClock {
2728
@Prop()
2829
iconPack: IconPack = defaultIconPack;
2930

31+
/** Size */
32+
@Prop({ reflect: true }) size: Size;
33+
3034
@State() startedTime: string;
3135
@State() timeDiff: number;
3236

0 commit comments

Comments
 (0)