Skip to content

Commit

Permalink
feat: hide button
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Nov 6, 2023
1 parent 0aac01d commit 563043b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 69 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[unreleased]

* Temporarily hiding leave community button from Possible impersonation attack

[2.0.3-alpha.0]

* Filter CSRs - remove old csrs and replace with new for each pubkey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ const PossibleImpersonationAttackModalComponent: React.FC<PossibleImpersonationA
<br />
<strong>This should never happen and we recommend leaving this community immediately!</strong>
</Typography>
<Button className={classes.button} data-testid='unregistered-button' onClick={leaveCommunity}>
{/* Temporarily hiding button - https://github.com/TryQuiet/quiet/issues/2025 */}
{/* <Button className={classes.button} data-testid='unregistered-button' onClick={leaveCommunity}>
Leave community
</Button>
</Button> */}
</StyledGrid>
</Modal>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,6 @@ describe('PossibleImpersonationAttackModal', () => {
This should never happen and we recommend leaving this community immediately!
</strong>
</p>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium PossibleImpersonationAttackModalComponent-button css-1skytee-MuiButtonBase-root-MuiButton-root"
data-testid="unregistered-button"
tabindex="0"
type="button"
>
Leave community
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ describe('Possible Impersonation Attack', () => {
const modal = screen.getByTestId('possible-impersonation-attack-modal-component')
expect(modal).toBeVisible()

const button = screen.getByTestId('unregistered-button')
expect(button).toBeVisible()
// Temporarily hiding button - https://github.com/TryQuiet/quiet/issues/2025 */

// const button = screen.getByTestId('unregistered-button')
// expect(button).toBeVisible()
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const PossibleImpersonationAttackComponent: React.FC<PossibleImpersonationAttack
<Typography fontSize={14} fontWeight={'bold'} style={classes.text2}>
This should never happen and we recommend leaving this community immediately!
</Typography>
<Button width={160} title={'Leave community'} onPress={leaveCommunity} />
{/* Temporarily hiding button - https://github.com/TryQuiet/quiet/issues/2025 */}
{/* <Button width={160} title={'Leave community'} onPress={leaveCommunity} /> */}
</View>
</View>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,59 +263,6 @@ describe('PossibleImpersonationAttack component', () => {
>
This should never happen and we recommend leaving this community immediately!
</Text>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessible={true}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"alignItems": "center",
"backgroundColor": "#521C74",
"borderRadius": 8,
"justifyContent": "center",
"marginVertical": 12,
"minHeight": 45,
"paddingVertical": 12,
"width": 160,
}
}
testID="button"
>
<Text
color="white"
fontSize={14}
horizontalTextAlign="left"
style={
[
{
"color": "#ffffff",
"fontFamily": "Rubik-Regular",
"fontSize": 14,
"textAlign": "left",
"textAlignVertical": "center",
},
]
}
verticalTextAlign="center"
>
Leave community
</Text>
</View>
</View>
</View>
`)
Expand Down

0 comments on commit 563043b

Please sign in to comment.