@ledgerhq/native-ui 0.7.15 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { BaseTextProps as TextProps } from "../../Text";
|
|
3
3
|
import { FlexBoxProps } from "../../Layout/Flex";
|
|
4
4
|
export declare type Props = React.PropsWithChildren<FlexBoxProps & {
|
|
5
|
-
extraTextProps?: TextProps
|
|
5
|
+
extraTextProps?: Omit<TextProps, "children">;
|
|
6
6
|
}>;
|
|
7
7
|
declare function Log({ children, extraTextProps }: Props): JSX.Element;
|
|
8
8
|
declare const _default: React.MemoExoticComponent<typeof Log>;
|
|
@@ -6,6 +6,7 @@ import Text from "../../Text";
|
|
|
6
6
|
import CloseMedium from "@ledgerhq/icons-ui/native/CloseMedium";
|
|
7
7
|
import { Flex } from "../../Layout";
|
|
8
8
|
import { space } from "styled-system";
|
|
9
|
+
import { ExternalLinkMedium } from "@ledgerhq/icons-ui/native";
|
|
9
10
|
const NotificationContainer = styled.View `
|
|
10
11
|
display: flex;
|
|
11
12
|
width: 100%;
|
|
@@ -35,7 +36,9 @@ export default function Notification({ Icon, iconColor, variant = "primary", num
|
|
|
35
36
|
!!subtitle && (React.createElement(Text, { variant: "body", fontWeight: "medium", color: variant === "primary" ? colors.neutral.c00 : colors.neutral.c80, mt: 2 }, subtitle)),
|
|
36
37
|
linkText && onLinkPress && (React.createElement(Flex, { mt: 3 },
|
|
37
38
|
React.createElement(TouchableOpacity, { onPress: onLinkPress },
|
|
38
|
-
React.createElement(
|
|
39
|
+
React.createElement(Flex, { flexDirection: "row", alignItems: "center" },
|
|
40
|
+
React.createElement(Text, { variant: "body", fontWeight: "semiBold", color: textColor, mr: 3 }, linkText),
|
|
41
|
+
React.createElement(ExternalLinkMedium, { size: 16, color: textColor })))))),
|
|
39
42
|
onClose && (React.createElement(FlexBox, { marginLeft: "auto", pl: 16 },
|
|
40
43
|
React.createElement(ClosePressableExtendedBounds, { onPress: onClose },
|
|
41
44
|
React.createElement(CloseMedium, { size: 14, color: textColor }))))));
|