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(prejoin) display recording warning (jitsi#14347)
- Loading branch information
Showing
9 changed files
with
159 additions
and
9 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
56 changes: 56 additions & 0 deletions
56
react/features/base/premeeting/components/web/RecordingWarning.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,56 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { makeStyles } from 'tss-react/mui'; | ||
|
||
import Icon from '../../../icons/components/Icon'; | ||
import { IconRecord } from '../../../icons/svg'; | ||
import { withPixelLineHeight } from '../../../styles/functions.web'; | ||
|
||
const useStyles = makeStyles()(theme => { | ||
return { | ||
container: { | ||
backgroundColor: theme.palette.warning01, | ||
borderRadius: theme.shape.borderRadius, | ||
color: theme.palette.text04, | ||
display: 'flex', | ||
justifyContent: 'center', | ||
...withPixelLineHeight(theme.typography.bodyShortRegular), | ||
marginBottom: theme.spacing(3), | ||
marginTop: theme.spacing(2), | ||
paddingBottom: theme.spacing(2), | ||
paddingTop: theme.spacing(2), | ||
width: '100%' | ||
}, | ||
warning: { | ||
alignItems: 'center', | ||
display: 'flex', | ||
paddingLeft: theme.spacing(3), | ||
paddingRight: theme.spacing(3) | ||
}, | ||
text: { | ||
fontWeight: 600, | ||
paddingLeft: theme.spacing(2) | ||
} | ||
}; | ||
}); | ||
|
||
const RecordingWarning = () => { | ||
const { t } = useTranslation(); | ||
const { classes, theme } = useStyles(); | ||
const color = theme.palette.icon04; | ||
|
||
return ( | ||
<div className = { classes.container }> | ||
<div className = { classes.warning }> | ||
<Icon | ||
color = { color } | ||
src = { IconRecord } /> | ||
<span className = { classes.text }> | ||
{t('prejoin.recordingWarning')} | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default RecordingWarning; |
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
39 changes: 39 additions & 0 deletions
39
react/features/prejoin/components/native/RecordingWarning.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,39 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { | ||
StyleProp, | ||
Text, | ||
TextStyle, | ||
View, | ||
ViewStyle | ||
} from 'react-native'; | ||
|
||
import Icon from '../../../base/icons/components/Icon'; | ||
import { IconRecord } from '../../../base/icons/svg'; | ||
import BaseTheme from '../../../base/ui/components/BaseTheme.native'; | ||
|
||
import { preJoinStyles as styles } from './styles'; | ||
|
||
|
||
const RecordingWarning = (): JSX.Element => { | ||
const { t } = useTranslation(); | ||
const color = BaseTheme.palette.icon04; | ||
|
||
return ( | ||
<View style = { styles.recordingWarningContainer as StyleProp<ViewStyle> }> | ||
<View style = { styles.recordingWarning as StyleProp<ViewStyle> }> | ||
<Icon | ||
color = { color } | ||
size = { 20 } | ||
src = { IconRecord } /> | ||
<Text | ||
numberOfLines = { 1 } | ||
style = { styles.recordingWarningText as StyleProp<TextStyle> }> | ||
{ t('prejoin.recordingWarning') } | ||
</Text> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
export default RecordingWarning; |
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