Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [unreleased]

### Features

* Add beta warning message to desktop when creating/joining a community [#3351](https://github.com/TryQuiet/quiet/issues/3351)

## [8.0.0]

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,20 @@ export const CreateUsernameComponent: React.FC<CreateUsernameComponentProps> = (
}),
}}
/>
<Grid container alignItems='center' direction='row' className={classes.marginMedium}>
<Grid item className={classes.iconDiv}>
<WarningIcon className={classes.warrningIcon} />
</Grid>
<Grid item xs>
<Typography
variant='body2'
className={classes.warrningMessage}
data-testid={'createUsernameBetaWarning'}
>
Quiet is in beta and shouldn't be used for activities requiring security.
</Typography>
</Grid>
</Grid>
</Grid>
</form>
</>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC, useEffect, useRef, useState } from 'react'
import { Keyboard, KeyboardAvoidingView, Platform, TextInput, View } from 'react-native'
import { Keyboard, KeyboardAvoidingView, Platform, TextInput, View, Image } from 'react-native'
import { defaultTheme } from '../../styles/themes/default.theme'
import { Button } from '../Button/Button.component'
import { Input } from '../Input/Input.component'
Expand All @@ -9,6 +9,8 @@ import { TextWithLink } from '../TextWithLink/TextWithLink.component'
import { CreateCommunityProps } from './CreateCommunity.types'
import { Splash } from '../Splash/Splash.component'

import { icons } from '../../assets'

export const CreateCommunity: FC<CreateCommunityProps> = ({
createCommunityAction,
redirectionAction,
Expand Down Expand Up @@ -90,7 +92,24 @@ export const CreateCommunity: FC<CreateCommunityProps> = ({
<View style={{ marginTop: 32 + 12 }}>
<Button onPress={onPress} title={'Continue'} loading={loading} />
</View>
<View style={{ marginTop: 32 + 12 }}>
<View
style={{
marginTop: 32 + 12,
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'center',
gap: 4,
}}
>
<Image
source={icons.icon_warning}
resizeMode='cover'
resizeMethod='resize'
style={{
width: 16,
height: 16,
}}
/>
<Typography
fontSize={14}
style={{ color: defaultTheme.palette.typography.grayDark, textAlign: 'center' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,29 @@ exports[`Spinner component renders component 1`] = `
<View
style={
{
"alignItems": "flex-start",
"flexDirection": "row",
"gap": 4,
"justifyContent": "center",
"marginTop": 44,
}
}
>
<Image
resizeMethod="resize"
resizeMode="cover"
source={
{
"testUri": "../../../src/assets/icons/png/icon_warning.png",
}
}
style={
{
"height": 16,
"width": 16,
}
}
/>
<Text
color="main"
fontSize={14}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC, useEffect, useState, useRef } from 'react'
import { Keyboard, KeyboardAvoidingView, Platform, TextInput, View } from 'react-native'
import { Keyboard, KeyboardAvoidingView, Platform, TextInput, View, Image } from 'react-native'
import { defaultTheme } from '../../styles/themes/default.theme'
import { Button } from '../Button/Button.component'
import { Input } from '../Input/Input.component'
Expand All @@ -13,6 +13,7 @@ import { Splash } from '../Splash/Splash.component'
import { InvitationData } from '@quiet/types'

import { createLogger } from '../../utils/logger'
import { icons } from '../../assets'

const logger = createLogger('joinCommunity:component')

Expand Down Expand Up @@ -123,12 +124,29 @@ export const JoinCommunity: FC<JoinCommunityProps> = ({
<View style={{ marginTop: 32 + 12 }}>
<Button onPress={onPress} title={'Continue'} loading={loading} />
</View>
<View style={{ marginTop: 32 + 12 }}>
<View
style={{
marginTop: 32 + 12,
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'center',
gap: 4,
}}
>
<Image
source={icons.icon_warning}
resizeMode='cover'
resizeMethod='resize'
style={{
width: 16,
height: 16,
}}
/>
<Typography
fontSize={14}
style={{ color: defaultTheme.palette.typography.grayDark, textAlign: 'center' }}
>
{"Quiet is in beta and shouldn't be used for acticdvities requiring security."}
{"Quiet is in beta and shouldn't be used for activities requiring security."}
</Typography>
</View>
</KeyboardAvoidingView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,29 @@ exports[`JoinCommunity component renders component 1`] = `
<View
style={
{
"alignItems": "flex-start",
"flexDirection": "row",
"gap": 4,
"justifyContent": "center",
"marginTop": 44,
}
}
>
<Image
resizeMethod="resize"
resizeMode="cover"
source={
{
"testUri": "../../../src/assets/icons/png/icon_warning.png",
}
}
style={
{
"height": 16,
"width": 16,
}
}
/>
<Text
color="main"
fontSize={14}
Expand All @@ -410,7 +429,7 @@ exports[`JoinCommunity component renders component 1`] = `
}
verticalTextAlign="center"
>
Quiet is in beta and shouldn't be used for acticdvities requiring security.
Quiet is in beta and shouldn't be used for activities requiring security.
</Text>
</View>
</View>
Expand Down
Loading