Fix minature => miniature spelling (#2727)

This commit is contained in:
Hugh Nimmo-Smith 2024-11-06 15:54:58 +00:00 committed by GitHub
parent a041a7bf7e
commit bfffddfa92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -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();
}); });

View File

@ -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">

View File

@ -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"
> >

View File

@ -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}
/> />