Skip to content

Commit

Permalink
Merge branch 'master' into 175883778-onboard-satispay-account
Browse files Browse the repository at this point in the history
  • Loading branch information
Undermaken authored Dec 1, 2020
2 parents e51b8b9 + 9b73c1f commit 362fbb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ts/components/CopyButtonComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { IOColors } from "./core/variables/IOColors";

type Props = Readonly<{
textToCopy: string;
onPressWithGestureHandler?: true;
}>;

const styles = StyleSheet.create({
Expand Down Expand Up @@ -61,6 +62,7 @@ const CopyButtonComponent: React.FunctionComponent<Props> = (props: Props) => {
style={styles.button}
bordered={!isTap}
primary={isTap}
onPressWithGestureHandler={props.onPressWithGestureHandler}
>
<Text
style={[styles.text, isTap ? styles.colorWhite : styles.colorBlue]}
Expand Down
5 changes: 4 additions & 1 deletion ts/features/bonus/bonusVacanze/components/QrModalBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ const QrModalBox: React.FunctionComponent<Props> = (props: Props) => {
{codeToDisplay}
</Text>
<View hspacer={true} />
<CopyButtonComponent textToCopy={codeToCopy} />
<CopyButtonComponent
textToCopy={codeToCopy}
onPressWithGestureHandler={true}
/>
</View>
</View>
{props.logo && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ const IdBlock = (props: IdBlockProps) => (
<Monospace weight={"SemiBold"} style={styles.copyText}>
{props.value}
</Monospace>
<CopyButtonComponent textToCopy={props.value} />
<CopyButtonComponent
textToCopy={props.value}
onPressWithGestureHandler={true}
/>
</View>
</View>
);
Expand Down

0 comments on commit 362fbb0

Please sign in to comment.