forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toolbox/native): reorganizing buttons in the toolbox and overflo…
…w menu (jitsi#15543) Configures what buttons can be visible inside Toolbox and OverflowMenu, based on priority and config overrides, just like web does.
- Loading branch information
1 parent
a6d333c
commit 405af3a
Showing
26 changed files
with
695 additions
and
356 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
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
20 changes: 20 additions & 0 deletions
20
react/features/reactions/components/native/RaiseHandContainerButtons.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { IProps as AbstractButtonProps } from '../../../base/toolbox/components/AbstractButton'; | ||
import RaiseHandButton from '../../../toolbox/components/native/RaiseHandButton'; | ||
import { shouldDisplayReactionsButtons } from '../../functions.native'; | ||
|
||
import ReactionsMenuButton from './ReactionsMenuButton'; | ||
|
||
const RaiseHandContainerButtons = (props: AbstractButtonProps) => { | ||
const _shouldDisplayReactionsButtons = useSelector(shouldDisplayReactionsButtons); | ||
|
||
return _shouldDisplayReactionsButtons | ||
? <ReactionsMenuButton | ||
{ ...props } | ||
showRaiseHand = { true } /> | ||
: <RaiseHandButton { ...props } />; | ||
}; | ||
|
||
export default RaiseHandContainerButtons; |
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
21 changes: 21 additions & 0 deletions
21
react/features/toolbox/components/native/HangupContainerButtons.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { IReduxState } from '../../../app/types'; | ||
import { IProps as AbstractButtonProps } from '../../../base/toolbox/components/AbstractButton'; | ||
import HangupButton from '../HangupButton'; | ||
|
||
import HangupMenuButton from './HangupMenuButton'; | ||
|
||
const HangupContainerButtons = (props: AbstractButtonProps) => { | ||
const { conference } = useSelector((state: IReduxState) => state['features/base/conference']); | ||
const endConferenceSupported = conference?.isEndConferenceSupported(); | ||
|
||
return endConferenceSupported | ||
|
||
// @ts-ignore | ||
? <HangupMenuButton { ...props } /> | ||
: <HangupButton { ...props } />; | ||
}; | ||
|
||
export default HangupContainerButtons; |
Oops, something went wrong.