Skip to content

Commit 7457c5a

Browse files
Amethystixltrung
andauthored
Adds optional nameplate prop to ContentShare (#880)
* Adds optional nameplate prop to ContentShare * Adds docs + changelog changes * Changes name of ContentShare nameplate in docs, fixes changelog. --------- Co-authored-by: Trung Le <[email protected]>
1 parent 5927b25 commit 7457c5a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Removed
1717

1818
### Changed
19-
19+
- Updated `ContentShare` to have optional nameplate prop.
2020
### Fixed
2121
- Fix a bug where the `isVideoEnabled` is still true even when the video device is unplugged.
2222

src/components/sdk/ContentShare/ContentShare.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const App = () => {
3232

3333
return (
3434
<MeetingProvider>
35-
<ContentShare />
35+
<ContentShare nameplate='Content share' />
3636
<button onClick={toggleContentShare}>Toggle content share</button>
3737
</MeetingProvider>
3838
);

src/components/sdk/ContentShare/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { useContentShareState } from '../../../providers/ContentShareProvider';
88
import { ContentTile } from '../../ui/ContentTile';
99
import { BaseSdkProps } from '../Base';
1010

11-
interface Props extends BaseSdkProps {}
11+
interface Props extends BaseSdkProps {
12+
nameplate?: string;
13+
}
1214

1315
export const ContentShare: React.FC<Props> = ({ className, ...rest }) => {
1416
const audioVideo = useAudioVideo();

0 commit comments

Comments
 (0)