<commit_before>/* eslint-disable react/forbid-prop-types */
/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2020
 */

import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';

import { PageInfo } from './PageInfo';

import { getPageInfoColumns } from '../pages/dataTableUtilities';

import { WHITE, SUSSOL_ORANGE } from '../globalStyles';

const RequisitionItemDetailsComponent = ({ item }) => (
  <View style={{ paddingLeft: 50 }}>
    <PageInfo
      titleColor={SUSSOL_ORANGE}
      infoColor={WHITE}
      columns={getPageInfoColumns('requisitionItemDetail')(item)}
    />
  </View>
);

RequisitionItemDetailsComponent.propTypes = { item: PropTypes.object.isRequired };

export const RequisitionItemDetails = React.memo(RequisitionItemDetailsComponent);<commit_msg>Add updated stlyes for RequisitionItemDetail<commit_after>/* eslint-disable react/forbid-prop-types */
/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2020
 */

import React from 'react';
import PropTypes from 'prop-types';
import { View, StyleSheet } from 'react-native';

import { PageInfo } from './PageInfo';

import { getPageInfoColumns } from '../pages/dataTableUtilities';

import { DARKER_GREY, WHITE, SUSSOL_ORANGE } from '../globalStyles';

const RequisitionItemDetailsComponent = ({ item }) => (
  <View style={localStyles.container}>
    <PageInfo
      titleColor={SUSSOL_ORANGE}
      infoColor={WHITE}
      columns={getPageInfoColumns('requisitionItemDetail')(item)}
    />
  </View>
);

const localStyles = StyleSheet.create({
  container: {
    paddingLeft: 50,
    backgroundColor: DARKER_GREY,
    height: 250,
    marginLeft: 20,
    marginRight: 20,
  },
});

RequisitionItemDetailsComponent.propTypes = { item: PropTypes.object.isRequired };

export const RequisitionItemDetails = React.memo(RequisitionItemDetailsComponent);
{'fraction_non_alphanumeric': 0.12939297124600638, 'fraction_numerical': 0.010117145899893504, 'mean_word_length': 4.57566765578635, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '957949', 'n_tokens_mistral': 595, 'n_tokens_neox': 567, 'n_words': 125}