-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react): provide displayName for our core components (#1423)
Adds `.displayName` property to our core SDK components. This should make it easier to debug our SDK in production/minified environments. Context: https://getstream.slack.com/archives/C06CF5TKRGA/p1719396728909279
- Loading branch information
Showing
9 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,5 @@ export const Audio = ({ | |
/> | ||
); | ||
}; | ||
|
||
Audio.displayName = 'Audio'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
packages/react-sdk/src/core/components/StreamCall/StreamCall.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import { StreamCallProvider } from '@stream-io/video-react-bindings'; | ||
import { ComponentType, PropsWithChildren } from 'react'; | ||
import { | ||
StreamCallProvider, | ||
StreamCallProviderProps, | ||
} from '@stream-io/video-react-bindings'; | ||
|
||
// re-exporting the StreamCallProvider as StreamCall | ||
export const StreamCall = StreamCallProvider; | ||
export const StreamCall: ComponentType< | ||
PropsWithChildren<StreamCallProviderProps> | ||
> = StreamCallProvider; | ||
|
||
StreamCall.displayName = 'StreamCall'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,3 +172,5 @@ export const Video = ({ | |
</> | ||
); | ||
}; | ||
|
||
Video.displayName = 'Video'; |