-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace ForceUpdateBanner by RemoteBanner, get data from Firestore (+…
…cheatcodes)
- Loading branch information
1 parent
04978b9
commit bcb5090
Showing
24 changed files
with
812 additions
and
123 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
183 changes: 183 additions & 0 deletions
183
__snapshots__/features/remoteBanner/components/RemoteBanner.native.test.tsx.native-snap
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,183 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`RemoteBanner matches the snapshot 1`] = ` | ||
<View | ||
accessibilityLabel="Nouvelle fenêtre : https://www.test.fr" | ||
accessibilityState={ | ||
{ | ||
"busy": undefined, | ||
"checked": undefined, | ||
"disabled": false, | ||
"expanded": undefined, | ||
"selected": undefined, | ||
} | ||
} | ||
accessibilityValue={ | ||
{ | ||
"max": undefined, | ||
"min": undefined, | ||
"now": undefined, | ||
"text": undefined, | ||
} | ||
} | ||
accessible={true} | ||
collapsable={false} | ||
focusable={true} | ||
onClick={[Function]} | ||
onResponderGrant={[Function]} | ||
onResponderMove={[Function]} | ||
onResponderRelease={[Function]} | ||
onResponderTerminate={[Function]} | ||
onResponderTerminationRequest={[Function]} | ||
onStartShouldSetResponder={[Function]} | ||
style={ | ||
{ | ||
"opacity": 1, | ||
"userSelect": "auto", | ||
} | ||
} | ||
testID="Nouvelle fenêtre : https://www.test.fr" | ||
> | ||
<View | ||
style={ | ||
[ | ||
{ | ||
"borderRadius": 7, | ||
"overflow": "hidden", | ||
}, | ||
] | ||
} | ||
> | ||
<View | ||
accessibilityIgnoresInvertColors={true} | ||
style={ | ||
[ | ||
{ | ||
"backgroundColor": "#eb0055", | ||
"justifyContent": "center", | ||
"width": "100%", | ||
}, | ||
] | ||
} | ||
> | ||
<Image | ||
source={ | ||
{ | ||
"testUri": "../../../public/images/BannerRectangle.png", | ||
} | ||
} | ||
style={ | ||
[ | ||
{ | ||
"bottom": 0, | ||
"left": 0, | ||
"position": "absolute", | ||
"right": 0, | ||
"top": 0, | ||
}, | ||
{ | ||
"height": undefined, | ||
"width": "100%", | ||
}, | ||
undefined, | ||
] | ||
} | ||
testID="module-background" | ||
/> | ||
<View | ||
style={ | ||
[ | ||
{ | ||
"alignItems": "center", | ||
"borderColor": "#90949D", | ||
"borderRadius": 7, | ||
"borderStyle": "solid", | ||
"borderWidth": 1, | ||
"flexDirection": "row", | ||
"padding": 16, | ||
"width": "100%", | ||
}, | ||
[ | ||
{ | ||
"borderWidth": 0, | ||
}, | ||
], | ||
] | ||
} | ||
> | ||
<View | ||
style={ | ||
[ | ||
{ | ||
"alignContent": "center", | ||
"marginRight": 16, | ||
}, | ||
] | ||
} | ||
> | ||
<View | ||
height={32} | ||
testID="ArrowAgain" | ||
width={32} | ||
> | ||
<Text> | ||
ArrowAgain-SVG-Mock | ||
</Text> | ||
</View> | ||
</View> | ||
<View | ||
style={ | ||
[ | ||
{ | ||
"flexGrow": 1, | ||
"flexShrink": 1, | ||
"marginRight": 16, | ||
"textAlign": "start", | ||
}, | ||
] | ||
} | ||
> | ||
<Text | ||
style={ | ||
[ | ||
{ | ||
"color": "#ffffff", | ||
"fontFamily": "Montserrat-Bold", | ||
"fontSize": 16, | ||
"lineHeight": 25.6, | ||
}, | ||
] | ||
} | ||
> | ||
title 1 | ||
</Text> | ||
<Text | ||
style={ | ||
[ | ||
{ | ||
"color": "#ffffff", | ||
"fontFamily": "Montserrat-Medium", | ||
"fontSize": 16, | ||
"lineHeight": 25.6, | ||
}, | ||
] | ||
} | ||
> | ||
subtitle 1 | ||
</Text> | ||
</View> | ||
<View> | ||
<View | ||
height={24} | ||
width={24} | ||
> | ||
<Text> | ||
undefined-SVG-Mock | ||
</Text> | ||
</View> | ||
</View> | ||
</View> | ||
</View> | ||
</View> | ||
</View> | ||
`; |
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
14 changes: 14 additions & 0 deletions
14
src/cheatcodes/pages/features/remoteBanner/CheatcodesScreenRemoteBanner.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,14 @@ | ||
import React from 'react' | ||
|
||
import { CheatcodesTemplateScreen } from 'cheatcodes/components/CheatcodesTemplateScreen' | ||
import { RemoteBanner } from 'features/remoteBanner/components/RemoteBanner' | ||
import { Spacer } from 'ui/theme' | ||
|
||
export const CheatcodesScreenRemoteBanner = () => { | ||
return ( | ||
<CheatcodesTemplateScreen title="RemoteBanner 🆒" flexDirection="column"> | ||
<Spacer.Column numberOfSpaces={3} /> | ||
<RemoteBanner /> | ||
</CheatcodesTemplateScreen> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.