Files
ThreadNet-Web/packages/shared-components/src/audio/Clock/Clock.stories.tsx
T
R Midhun SureshandGitHub 14e4650c72 Ongoing call tiles - Implement the required views (#34197)
* Add a common view snapshot type

This will contain the common snapshot values used by both dm ongoing
call tile view and room ongoing call tile view.

* Implement the common join button component

* Implement the call icon component

* Implement the common container component

* Support single digit minutes in existing clock component

* Implement the view for duration component

* Add static profile pics to be used in storybook tests

* Implement view for member avatar component

* Implement view for face pile component

* Implement RoomOngoingCallTileView

* Implement DmOngoingCallTileView

* Support the new tiles in RootTileView

* Export all the views

* Update all the screenshots

* Add a comment about the 10px margin

* Add comments to explain css heights and widths
2026-07-13 13:20:50 +00:00

37 lines
762 B
TypeScript

/*
* Copyright 2025 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Clock } from "./Clock";
const meta = {
title: "Audio/Clock",
component: Clock,
tags: ["autodocs"],
args: {
seconds: 20,
},
} satisfies Meta<typeof Clock>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const LotOfSeconds: Story = {
args: {
seconds: 99999999999999,
},
};
export const SingleDigitMinutes: Story = {
args: {
seconds: 100,
minutesMaxLength: 1,
},
};