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.

VoteNotAvailable.js 853B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import * as React from 'react';
  3. import {View} from 'react-native';
  4. import {Headline, withTheme} from 'react-native-paper';
  5. import i18n from 'i18n-js';
  6. import type {CustomThemeType} from '../../../managers/ThemeManager';
  7. type PropsType = {
  8. theme: CustomThemeType,
  9. };
  10. class VoteNotAvailable extends React.Component<PropsType> {
  11. shouldComponentUpdate(): boolean {
  12. return false;
  13. }
  14. render(): React.Node {
  15. const {props} = this;
  16. return (
  17. <View
  18. style={{
  19. width: '100%',
  20. marginTop: 10,
  21. marginBottom: 10,
  22. }}>
  23. <Headline
  24. style={{
  25. color: props.theme.colors.textDisabled,
  26. textAlign: 'center',
  27. }}>
  28. {i18n.t('screens.vote.noVote')}
  29. </Headline>
  30. </View>
  31. );
  32. }
  33. }
  34. export default withTheme(VoteNotAvailable);