Application Android et IOS pour l'amicale des élèves
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.

ActionsDashboardItem.tsx 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (c) 2019 - 2020 Arnaud Vergnet.
  3. *
  4. * This file is part of Campus INSAT.
  5. *
  6. * Campus INSAT is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Campus INSAT is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Campus INSAT. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. import * as React from 'react';
  20. import {List} from 'react-native-paper';
  21. import {View} from 'react-native';
  22. import i18n from 'i18n-js';
  23. import {useNavigation} from '@react-navigation/native';
  24. function ActionsDashBoardItem() {
  25. const navigation = useNavigation();
  26. return (
  27. <View>
  28. <List.Item
  29. title={i18n.t('screens.feedback.homeButtonTitle')}
  30. description={i18n.t('screens.feedback.homeButtonSubtitle')}
  31. left={(props) => (
  32. <List.Icon
  33. color={props.color}
  34. style={props.style}
  35. icon="comment-quote"
  36. />
  37. )}
  38. right={(props) => (
  39. <List.Icon
  40. color={props.color}
  41. style={props.style}
  42. icon="chevron-right"
  43. />
  44. )}
  45. onPress={(): void => navigation.navigate('feedback')}
  46. style={{
  47. paddingTop: 0,
  48. paddingBottom: 0,
  49. marginLeft: 10,
  50. marginRight: 10,
  51. }}
  52. />
  53. </View>
  54. );
  55. }
  56. export default ActionsDashBoardItem;