-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fi1osof
committed
May 1, 2020
1 parent
7f60a41
commit 6922d26
Showing
4 changed files
with
84 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
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
76 changes: 76 additions & 0 deletions
76
src/components/Renderer/pages/Root/components/webrtc/CallRequestButtons/index.js
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import React from 'react'; | ||
|
||
import EditorComponent from '@prisma-cms/front-editor/lib/components/App/components/'; | ||
|
||
import { | ||
CallRequestButtons as WebRtcCallRequestButtons, | ||
} from '@prisma-cms/webrtc'; | ||
|
||
export class CallRequestButtons extends EditorComponent { | ||
|
||
static Name = 'CallRequestButtons'; | ||
|
||
static defaultProps = { | ||
...EditorComponent.defaultProps, | ||
hide_wrapper_in_default_mode: true, | ||
} | ||
|
||
|
||
renderPanelView(content) { | ||
|
||
const { | ||
classes, | ||
} = this.getEditorContext(); | ||
|
||
return super.renderPanelView( | ||
content || | ||
<div | ||
className={classes.panelButton} | ||
> | ||
CallRequestButtons | ||
</div> | ||
); | ||
} | ||
|
||
|
||
getRootElement() { | ||
|
||
return super.getRootElement(); | ||
} | ||
|
||
|
||
canBeParent(parent) { | ||
|
||
return super.canBeParent(parent); | ||
} | ||
|
||
|
||
canBeChild(child) { | ||
|
||
// return super.canBeChild(child); | ||
return false; | ||
} | ||
|
||
|
||
renderChildren() { | ||
|
||
// const { | ||
// } = this.context; | ||
|
||
// const { | ||
// } = this.getEditorContext(); | ||
|
||
// const { | ||
// ...other | ||
// } = this.getComponentProps(this); | ||
|
||
// return super.renderChildren(); | ||
|
||
return <WebRtcCallRequestButtons | ||
key="CallRequestButtons" | ||
/> | ||
} | ||
|
||
} | ||
|
||
export default CallRequestButtons; |
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