Skip to content

Commit

Permalink
Pairing UI refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
tmgrask committed Dec 13, 2024
1 parent 23d8187 commit e79ce6d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/ConduitOrbToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export function ConduitOrbToggle({
>
{t("UPGRADE_REQUIRED_I18N.string")}
</Animated.Text>
<ConduitShareAction height={height / 4} />
<ConduitShareAction height={height / 8} />
</View>
);
}
8 changes: 8 additions & 0 deletions src/components/ConduitSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,14 @@ export function ConduitSettings({ iconSize }: { iconSize: number }) {
<Text style={[ss.whiteText, ss.bodyFont]}>
{t("PERSONAL_PAIRING_I18N.string")}
</Text>
<Text style={[ss.greyText, ss.bodyFont]}>
(
{inproxyParameters.compartmentId.slice(
0,
5,
)}
...)
</Text>
<AnimatedText
text={personalPairingStatus}
color={palette.white}
Expand Down
26 changes: 12 additions & 14 deletions src/components/SharePairingLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@

import { base64url } from "@scure/base";
import { useTranslation } from "react-i18next";
import { ActivityIndicator, Platform, Share } from "react-native";
import Animated from "react-native-reanimated";
import {
ActivityIndicator,
Platform,
Pressable,
Share,
Text,
} from "react-native";

import { useInproxyCompartmentId } from "@/src/auth/hooks";
import { wrapError } from "@/src/common/errors";
Expand Down Expand Up @@ -116,20 +121,13 @@ export function SharePairingLink() {
}

return (
<Animated.View
style={[
ss.rounded10,
ss.padded,
ss.whiteBorder,
{
backgroundColor: palette.blue,
},
]}
<Pressable
style={[ss.rounded10, ss.padded, ss.whiteBg]}
onTouchStart={onShare}
>
<Animated.Text style={[ss.boldFont, ss.centeredText, ss.whiteText]}>
<Text style={[ss.boldFont, ss.centeredText, ss.blackText]}>
{t("SHARE_PAIRING_LINK_I18N.string")}
</Animated.Text>
</Animated.View>
</Text>
</Pressable>
);
}

0 comments on commit e79ce6d

Please sign in to comment.