diff --git a/src/LocalizedPrice/LocalizedPrice.js b/src/LocalizedPrice/LocalizedPrice.js index e797b52..d430781 100644 --- a/src/LocalizedPrice/LocalizedPrice.js +++ b/src/LocalizedPrice/LocalizedPrice.js @@ -5,17 +5,27 @@ import { defaultTokens } from '@kiwicom/orbit-design-tokens'; import { Text } from '../Text'; import { StyleSheet } from '../PlatformStyleSheet'; -import type { LocalizedPriceProps } from './LocalizedPriceTypes'; +import type { StylePropType } from '../PlatformStyleSheet/StyleTypes'; + +type LocalizedPriceProps = {| + +localizedPrice: string, + +style?: StylePropType, +|}; export default function LocalizedPrice({ localizedPrice, + style, }: LocalizedPriceProps) { - return {localizedPrice}; + return {localizedPrice}; } const styles = StyleSheet.create({ price: { fontWeight: 'bold', color: defaultTokens.colorTextLinkPrimary, fontSize: parseFloat(defaultTokens.fontSizeTextLarge), + web: { + color: '#2e353b', // // @TODO repeating value - should be added to design-tokens + fontSize: 18, + }, }, }); diff --git a/src/LocalizedPrice/LocalizedPriceTypes.js b/src/LocalizedPrice/LocalizedPriceTypes.js deleted file mode 100644 index 9c2faeb..0000000 --- a/src/LocalizedPrice/LocalizedPriceTypes.js +++ /dev/null @@ -1,5 +0,0 @@ -// @flow - -export type LocalizedPriceProps = {| - +localizedPrice: string, -|};