Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProxiwashAboutScreen.js 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // @flow
  2. import * as React from 'react';
  3. import {Image, View} from 'react-native';
  4. import i18n from 'i18n-js';
  5. import {Card, List, Paragraph, Text, Title} from 'react-native-paper';
  6. import CustomTabBar from '../../components/Tabbar/CustomTabBar';
  7. import CollapsibleScrollView from '../../components/Collapsible/CollapsibleScrollView';
  8. const LOGO = 'https://etud.insa-toulouse.fr/~amicale_app/images/Proxiwash.png';
  9. /**
  10. * Class defining the proxiwash about screen.
  11. */
  12. // eslint-disable-next-line react/prefer-stateless-function
  13. export default class ProxiwashAboutScreen extends React.Component<null> {
  14. render(): React.Node {
  15. return (
  16. <CollapsibleScrollView style={{padding: 5}} hasTab>
  17. <View
  18. style={{
  19. width: '100%',
  20. height: 100,
  21. marginTop: 20,
  22. marginBottom: 20,
  23. justifyContent: 'center',
  24. alignItems: 'center',
  25. }}>
  26. <Image
  27. source={{uri: LOGO}}
  28. style={{height: '100%', width: '100%', resizeMode: 'contain'}}
  29. />
  30. </View>
  31. <Text>{i18n.t('screens.proxiwash.description')}</Text>
  32. <Card style={{margin: 5}}>
  33. <Card.Title
  34. title={i18n.t('screens.proxiwash.dryer')}
  35. left={({
  36. size,
  37. color,
  38. }: {
  39. size: number,
  40. color: string,
  41. }): React.Node => (
  42. <List.Icon size={size} color={color} icon="tumble-dryer" />
  43. )}
  44. />
  45. <Card.Content>
  46. <Title>{i18n.t('screens.proxiwash.procedure')}</Title>
  47. <Paragraph>{i18n.t('screens.proxiwash.dryerProcedure')}</Paragraph>
  48. <Title>{i18n.t('screens.proxiwash.tips')}</Title>
  49. <Paragraph>{i18n.t('screens.proxiwash.dryerTips')}</Paragraph>
  50. </Card.Content>
  51. </Card>
  52. <Card style={{margin: 5}}>
  53. <Card.Title
  54. title={i18n.t('screens.proxiwash.washer')}
  55. left={({
  56. size,
  57. color,
  58. }: {
  59. size: number,
  60. color: string,
  61. }): React.Node => (
  62. <List.Icon size={size} color={color} icon="washing-machine" />
  63. )}
  64. />
  65. <Card.Content>
  66. <Title>{i18n.t('screens.proxiwash.procedure')}</Title>
  67. <Paragraph>{i18n.t('screens.proxiwash.washerProcedure')}</Paragraph>
  68. <Title>{i18n.t('screens.proxiwash.tips')}</Title>
  69. <Paragraph>{i18n.t('screens.proxiwash.washerTips')}</Paragraph>
  70. </Card.Content>
  71. </Card>
  72. <Card style={{margin: 5}}>
  73. <Card.Title
  74. title={i18n.t('screens.proxiwash.tariffs')}
  75. left={({
  76. size,
  77. color,
  78. }: {
  79. size: number,
  80. color: string,
  81. }): React.Node => (
  82. <List.Icon size={size} color={color} icon="circle-multiple" />
  83. )}
  84. />
  85. <Card.Content>
  86. <Paragraph>{i18n.t('screens.proxiwash.washersTariff')}</Paragraph>
  87. <Paragraph>{i18n.t('screens.proxiwash.dryersTariff')}</Paragraph>
  88. </Card.Content>
  89. </Card>
  90. <Card
  91. style={{margin: 5, marginBottom: CustomTabBar.TAB_BAR_HEIGHT + 20}}>
  92. <Card.Title
  93. title={i18n.t('screens.proxiwash.paymentMethods')}
  94. left={({
  95. size,
  96. color,
  97. }: {
  98. size: number,
  99. color: string,
  100. }): React.Node => (
  101. <List.Icon size={size} color={color} icon="cash" />
  102. )}
  103. />
  104. <Card.Content>
  105. <Paragraph>
  106. {i18n.t('screens.proxiwash.paymentMethodsDescription')}
  107. </Paragraph>
  108. </Card.Content>
  109. </Card>
  110. </CollapsibleScrollView>
  111. );
  112. }
  113. }