Skip to content

Commit 033403c

Browse files
committed
chore(ui-voip): small corrections
1 parent 78cc122 commit 033403c

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/ui-voip/src/experimental/AppActionButtons/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export type {
55
AppButtonInteractionHandler,
66
MediaCallAppActionDescriptor,
77
MediaCallAppActionsContextValue,
8-
MediaCallWidgetState as MediaCallState,
8+
MediaCallWidgetState,
99
} from './context/MediaCallAppActionsContext';

packages/ui-voip/src/experimental/AppActionButtons/stories/ActionStrip.stories.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ export default {
2121
Resume: 'Resume',
2222
Show_chat: 'Show chat',
2323
Hide_chat: 'Hide chat',
24+
Screen_sharing: 'Screen sharing',
25+
Screen_sharing_off: 'Screen sharing off',
26+
Forward: 'Forward',
27+
Voice_call__user__hangup: 'Hang up {{user}}',
2428
})
2529
.buildStoryDecorator(),
26-
(Story, { args }) => (
30+
(Story) => (
2731
<MockedMediaCallAppActionsProvider>
2832
<MockedMediaCallProvider state='ongoing'>
29-
<Story {...args} />
33+
<Story />
3034
</MockedMediaCallProvider>
3135
</MockedMediaCallAppActionsProvider>
3236
),

packages/ui-voip/src/experimental/AppActionButtons/stories/WidgetStates.stories.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ const stateAwareActions: MediaCallAppActionDescriptor[] = [
8282
const handleInteraction: AppButtonInteractionHandler = async ({ button, sessionState }) => {
8383
switch (button.actionId) {
8484
case 'always-visible':
85-
return { update: { label: `Clicked in state ${sessionState.callId}`, actionId: 'default' } };
85+
return { update: { label: `Clicked with call id ${sessionState.callId}`, actionId: 'default' } };
8686
case 'new-only':
8787
case 'ringing-states':
8888
case 'calling-states':
8989
case 'ongoing-only':
9090
case 'danger-action':
91-
return { update: { label: `Clicked in state ${sessionState.callId} (filtered)` } };
91+
return { update: { label: `Clicked with call id ${sessionState.callId} (filtered)` } };
9292
default:
9393
return undefined;
9494
}
@@ -146,8 +146,6 @@ const meta = {
146146
decorators: [
147147
mockedContexts,
148148
(Story, { args }) => (
149-
// key forces a full remount whenever the initial-state arg changes,
150-
// so the widget always starts fresh from the selected state.
151149
<MockedMediaCallAppActionsProvider actions={stateAwareActions} handleInteraction={handleInteraction}>
152150
<MockedMediaCallProvider state={args.state} transferredBy={args.transferredBy}>
153151
<Story />

0 commit comments

Comments
 (0)