Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
const styles = StyleSheet.create({
container: {
marginTop: parseFloat(defaultTokens.marginTopFormFeedback),
marginStart: parseFloat(defaultTokens.spaceSmall),
},
message: {
fontSize: parseFloat(defaultTokens.fontSizeFormFeedback),
},
default: {
fontWeight: '400',
color: defaultTokens.colorTextSecondary,
},
error: {
fontWeight: designTokens.fontWeightMedium,
color: defaultTokens.colorTextError,
},
});
paddingStart: parseInt(defaultTokens.spaceLarge, 10),
paddingVertical: parseInt(defaultTokens.spaceMedium, 10),
flexDirection: 'row',
borderColor: defaultTokens.paletteInkLighter,
borderStartWidth: 2,
alignItems: 'center',
web: {
borderStyle: 'dotted',
},
},
icon: {
marginEnd: parseInt(defaultTokens.spaceXSmall, 10),
},
text: {
fontSize: parseInt(defaultTokens.fontSizeTextSmall, 10),
color: defaultTokens.colorTextSecondary,
},
});
);
}
Duration.defaultProps = {
showIcon: true,
};
const styleSheet = StyleSheet.create({
row: {
flexDirection: 'row',
alignItems: 'center',
},
durationText: {
fontSize: 12,
color: defaultTokens.colorTextSecondary,
},
});
paddingHorizontal: 10,
},
places: {
flex: 1,
},
text: {
fontSize: parseFloat(defaultTokens.fontSizeTextSmall),
lineHeight: 17,
paddingHorizontal: 5,
paddingVertical: 5,
},
infoItems: {
alignItems: 'flex-end',
},
info: {
color: defaultTokens.colorTextSecondary,
},
timeline: {},
});
export default function Duration(props: Props) {
const { hours, minutes } = separateHours(props.duration || 0);
const duration = `${hours}h ${minutes}m`;
return (
);
}
name="close"
color={defaultTokens.colorIconSecondary}
size="small"
/>
);
}
}
const styles = StyleSheet.create({
buttonContainer: {
flexDirection: 'row',
},
text: {
color: defaultTokens.colorTextSecondary,
marginEnd: parseFloat(defaultTokens.spaceXXXSmall),
},
});
borderRadius: 3,
backgroundColor: defaultTokens.paletteWhite,
borderWidth: 1,
borderColor: defaultTokens.paletteInkLighter,
},
},
warningContainer: {
borderColor: defaultTokens.paletteRedNormal,
},
icon: {
marginEnd: 10,
},
label: {
color: defaultTokens.paletteInkNormal,
web: {
color: defaultTokens.colorTextSecondary,
},
},
value: {
color: defaultTokens.colorTextAttention,
web: {
color: defaultTokens.paletteInkNormal,
fontWeight: designTokens.fontWeightMedium,
},
},
});
);
}
return null;
};
const styles = StyleSheet.create({
text: {
fontSize: parseInt(defaultTokens.fontSizeTextSmall, 10),
color: defaultTokens.colorTextSecondary,
marginTop: parseInt(defaultTokens.spaceSmall, 10),
marginBottom: parseInt(defaultTokens.spaceMedium, 10),
marginStart: 48,
},
});
export default createFragmentContainer(SectorStopoverDuration, {
data: graphql`
fragment SectorStopoverDuration_data on Sector {
stopoverDuration
departure {
stop {
city {
name
}
}
justifyContent: 'space-between',
alignItems: 'center',
paddingStart: 19,
},
infoText: {
fontSize: parseInt(defaultTokens.fontSizeTextNormal, 10),
color: defaultTokens.colorTextPrimary,
},
infoTextThick: {
web: {
fontWeight: designTokens.fontWeightMedium,
},
},
infoLabel: {
fontSize: parseInt(defaultTokens.fontSizeTextSmall, 10),
color: defaultTokens.colorTextSecondary,
},
});
) : (
);
};
const styles = StyleSheet.create({
container: {
marginVertical: parseFloat(defaultTokens.spaceXXSmall),
flexDirection: 'row',
justifyContent: 'space-between',
},
text: {
color: defaultTokens.colorTextSecondary,
fontSize: parseFloat(defaultTokens.fontSizeTextNormal),
},
value: {
color: defaultTokens.colorTextAttention,
},
});
export default TableRow;