message: Render mapping in component so translate works
diff: @@ -62,7 +62,13 @@ const styles = EStyleSheet.create({
  },
  })
  -const mapping = {
  +type Props = {
  + prices: prices_prices[]
  +}
  +
  +export const PriceGraph: ComponentType = ({ prices }: Props) => {
  + const mapping = React.useMemo(
  + () => ({
  d: {
  last: 24,
  filter: 1,
  @@ -86,13 +92,10 @@ const mapping = {
  filter: 24 * 2,
  label: translate("PriceScreen.thisYear"),
  },
  -}
  -
  -type Props = {
  - prices: prices_prices[]
  -}
  + }),
  + [],
  + )
  -export const PriceGraph: ComponentType = ({ prices }: Props) => {
  const [time, setTime] = React.useState("d") // d, w, m, y
  let price
  