Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
unstash
  • Loading branch information
ikethirdweb committed Oct 20, 2023
commit 9ba3131e31fcada1cd96f50938a56d37e9908f33
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import { WalletIcon } from "../base/WalletIcon";
import WalletConnectIcon from "../../assets/wallet-connect";
import QrCodeIcon from "../../assets/qr-code";
import { QRCodeScan } from "./QRCodeScan";
import { useLocale } from "../../providers/ui-context-provider";

const ConnectAppField = () => {
const theme = useTheme();
const l = useLocale();
const [showWCInput, setShowWCInput] = useState(false);
const [wcUri, setWCUri] = useState<string | undefined>();
const [appMeta, setAppMeta] = useState<{ name: string; iconUrl: string }>();
Expand Down Expand Up @@ -132,7 +134,7 @@ const ConnectAppField = () => {
numberOfLines: 1,
style: {
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
},
}}
containerProps={{
Expand Down Expand Up @@ -181,7 +183,7 @@ const ConnectAppField = () => {
)}
<View style={styles.exportWalletInfo}>
<Text variant="bodySmall" numberOfLines={1}>
{appMeta ? appMeta.name : "Connect app"}
{appMeta ? appMeta.name : l.common.connect_app}
</Text>
</View>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const LocalWalletImportModal = ({
onChangeText: onPrivateKeyEntered,
style: {
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
},
}}
containerProps={{ pl: "xxs" }}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/src/evm/components/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const PasswordInput = ({
style={{
...styles.textInput,
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
}}
secureTextEntry={!showPassword}
textContentType="none"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const SendFundsForm = ({
onChangeText={setReceiverAddress}
style={{
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
textAlign: "left",
flex: 1,
height: 40,
Expand Down Expand Up @@ -323,7 +323,7 @@ const SendFundsForm = ({
clearTextOnFocus={false}
style={{
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
textAlign: "left",
flex: 1,
height: 40,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function TokenSelector(props: {
onChangeText={setInput}
style={{
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
textAlign: "left",
flex: 1,
height: 40,
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/src/evm/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const _en = {
search_wallets: "Search Wallets",
},
common: {
connect_app: "Connect app",
unknown_network: "Unknown Network",
fetching: "Fetching...",
password: "Password",
Expand Down
14 changes: 7 additions & 7 deletions packages/react-native/src/evm/styles/textVariants.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export const textVariants = {
defaults: {
fontFamily: "none",
fontSize: 24,
fontWeight: "700",
lineHeight: 32,
color: "textPrimary",
},
// defaults: {
// fontFamily: "ShopifySans", //Platform.OS === "ios" ? "San Francisco" : "Roboto",
// fontSize: 24,
// fontWeight: "700",
// lineHeight: 32,
// color: "textPrimary",
// },
header: {
fontSize: 24,
fontWeight: "600",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const EmailSelectionUI: React.FC<
style: {
fontSize: 14,
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
lineHeight: 16,
padding: 0,
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const MagicSelectionUI: React.FC<SelectUIProps<MagicLink>> = (props) => {
style: {
fontSize: 14,
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
lineHeight: 16,
padding: 0,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export function WalletConnectUI({
style={{
...styles.textInput,
color: theme.colors.textSecondary,
fontFamily: theme.textVariants.defaults.fontFamily,
// fontFamily: theme.textVariants.defaults.fontFamily,
}}
/>
</Box>
Expand Down