summaryrefslogtreecommitdiff
path: root/app/presentation/components/set.js
blob: 9e1c4f2cf4ee120064628a764659508e43021d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React, { Component } from 'react';
import { View } from 'react-native';
import { Button, Icon, Spinner, Text } from 'native-base';
import Weight from './weight';

export default class Set extends Component {
  constructor(props) {
    super(props);
    this.state = {
      actual_repetitions: 0
    };
  }
  render() {
    return (
      <Button block info>
      {this.state.actual_repetitions} / {this.props.target_repetitions} @ <Weight weight={this.props.target_weight} />
      </Button>
    );
  }
}