mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-24 00:38:31 +08:00
Fix minature => miniature spelling (#2727)
This commit is contained in:
parent
a041a7bf7e
commit
bfffddfa92
@ -33,10 +33,10 @@ describe("RaisedHandIndicator", () => {
|
|||||||
);
|
);
|
||||||
expect(container.firstChild).toMatchSnapshot();
|
expect(container.firstChild).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
test("renders a smaller indicator when minature is specified", () => {
|
test("renders a smaller indicator when miniature is specified", () => {
|
||||||
const dateTime = new Date();
|
const dateTime = new Date();
|
||||||
const { container } = render(
|
const { container } = render(
|
||||||
<RaisedHandIndicator raisedHandTime={dateTime} minature showTimer />,
|
<RaisedHandIndicator raisedHandTime={dateTime} miniature showTimer />,
|
||||||
);
|
);
|
||||||
expect(container.firstChild).toMatchSnapshot();
|
expect(container.firstChild).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
@ -27,12 +27,12 @@ const durationFormatter = new DurationFormat(undefined, {
|
|||||||
|
|
||||||
export function RaisedHandIndicator({
|
export function RaisedHandIndicator({
|
||||||
raisedHandTime,
|
raisedHandTime,
|
||||||
minature,
|
miniature,
|
||||||
showTimer,
|
showTimer,
|
||||||
onClick,
|
onClick,
|
||||||
}: {
|
}: {
|
||||||
raisedHandTime?: Date;
|
raisedHandTime?: Date;
|
||||||
minature?: boolean;
|
miniature?: boolean;
|
||||||
showTimer?: boolean;
|
showTimer?: boolean;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
}): ReactNode {
|
}): ReactNode {
|
||||||
@ -78,12 +78,12 @@ export function RaisedHandIndicator({
|
|||||||
const content = (
|
const content = (
|
||||||
<div
|
<div
|
||||||
className={classNames(styles.raisedHandWidget, {
|
className={classNames(styles.raisedHandWidget, {
|
||||||
[styles.raisedHandWidgetLarge]: !minature,
|
[styles.raisedHandWidgetLarge]: !miniature,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={classNames(styles.raisedHand, {
|
className={classNames(styles.raisedHand, {
|
||||||
[styles.raisedHandLarge]: !minature,
|
[styles.raisedHandLarge]: !miniature,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<span role="img" aria-label="raised hand">
|
<span role="img" aria-label="raised hand">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||||
|
|
||||||
exports[`RaisedHandIndicator > renders a smaller indicator when minature is specified 1`] = `
|
exports[`RaisedHandIndicator > renders a smaller indicator when miniature is specified 1`] = `
|
||||||
<div
|
<div
|
||||||
class="raisedHandWidget"
|
class="raisedHandWidget"
|
||||||
>
|
>
|
||||||
|
@ -114,7 +114,7 @@ export const MediaView = forwardRef<HTMLDivElement, Props>(
|
|||||||
)}
|
)}
|
||||||
<RaisedHandIndicator
|
<RaisedHandIndicator
|
||||||
raisedHandTime={raisedHandTime}
|
raisedHandTime={raisedHandTime}
|
||||||
minature={avatarSize < 96}
|
miniature={avatarSize < 96}
|
||||||
showTimer={handRaiseTimerVisible}
|
showTimer={handRaiseTimerVisible}
|
||||||
onClick={raisedHandOnClick}
|
onClick={raisedHandOnClick}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user