summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-03-13 12:44:27 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-14 09:31:47 +0100
commit35020db3a13803ea9b6f66cd2714c73d014dd593 (patch)
tree4c238f277093a24b981f3eb84d779efd7d5d99e0 /gui/src/renderer
parent3d84da3fd21af44422b6adbfbfe63ec2cc9fce6d (diff)
downloadmullvadvpn-35020db3a13803ea9b6f66cd2714c73d014dd593.tar.xz
mullvadvpn-35020db3a13803ea9b6f66cd2714c73d014dd593.zip
Prefix all Cell types for easier debugging
Diffstat (limited to 'gui/src/renderer')
-rw-r--r--gui/src/renderer/components/Cell.tsx34
1 files changed, 17 insertions, 17 deletions
diff --git a/gui/src/renderer/components/Cell.tsx b/gui/src/renderer/components/Cell.tsx
index 126bcf63d0..dabae2d1a2 100644
--- a/gui/src/renderer/components/Cell.tsx
+++ b/gui/src/renderer/components/Cell.tsx
@@ -160,15 +160,15 @@ interface ISectionTitleProps {
children?: React.ReactText;
}
-export function SectionTitle(props: ISectionTitleProps) {
+export const SectionTitle = function CellSectionTitle(props: ISectionTitleProps) {
return <Text style={styles.sectionTitle}>{props.children}</Text>;
-}
+};
interface ISectionProps {
children?: React.ReactNode;
}
-export class Section extends Component<ISectionProps> {
+export const Section = class CellSection extends Component<ISectionProps> {
public render() {
return (
<View>
@@ -178,15 +178,15 @@ export class Section extends Component<ISectionProps> {
</View>
);
}
-}
+};
interface IContainerProps {
children: React.ReactNode;
}
-export function Container({ children }: IContainerProps) {
+export const Container = function CellContainer({ children }: IContainerProps) {
return <View style={styles.cellContainer}>{children}</View>;
-}
+};
interface ILabelProps {
containerStyle?: Types.ViewStyleRuleSet;
@@ -197,7 +197,7 @@ interface ILabelProps {
children?: React.ReactNode;
}
-export function Label(props: ILabelProps) {
+export const Label = function CellLabel(props: ILabelProps) {
const {
children,
containerStyle,
@@ -224,7 +224,7 @@ export function Label(props: ILabelProps) {
)}
</CellHoverContext.Consumer>
);
-}
+};
export const Switch = function CellSwitch(props: SwitchControl['props']) {
return (
@@ -239,13 +239,13 @@ interface InputFrameProps {
style?: Types.StyleRuleSetRecursive<Types.ViewStyleRuleSet>;
}
-export function InputFrame(props: InputFrameProps) {
+export const InputFrame = function CellInputFrame(props: InputFrameProps) {
const { style, children } = props;
return <View style={[styles.input.frame, style]}>{children}</View>;
-}
+};
-export const Input = React.forwardRef(function InputT(
+export const Input = React.forwardRef(function CellInput(
props: Types.TextInputProps,
ref?: React.Ref<TextInput>,
) {
@@ -268,7 +268,7 @@ type SubTextProps = Types.TextProps & {
cellHoverStyle?: Types.ViewStyle;
};
-export function SubText(props: SubTextProps) {
+export const SubText = function CellSubText(props: SubTextProps) {
const { children, ref: _, style, cellHoverStyle, ...otherProps } = props;
return (
@@ -280,9 +280,9 @@ export function SubText(props: SubTextProps) {
)}
</CellHoverContext.Consumer>
);
-}
+};
-export function Icon(props: ImageView['props']) {
+export const Icon = function CellIcon(props: ImageView['props']) {
const { children: _children, style, tintColor, tintHoverColor, ...otherProps } = props;
return (
@@ -296,12 +296,12 @@ export function Icon(props: ImageView['props']) {
)}
</CellHoverContext.Consumer>
);
-}
+};
-export function Footer({ children }: IContainerProps) {
+export const Footer = function CellFooter({ children }: IContainerProps) {
return (
<View style={styles.footer.container}>
<Text style={styles.footer.text}>{children}</Text>
</View>
);
-}
+};