26 |
27 |
33 | {orderLabel}
34 |
35 |
36 |
37 | );
38 |
39 | OrderHandle.propTypes = {
40 | handle: PropTypes.string.isRequired,
41 | orderLabel: PropTypes.node.isRequired,
42 | panHandlers: PropTypes.shape(),
43 | orderStyle: StylePropType,
44 | };
45 |
46 | OrderHandle.defaultProps = {
47 | panHandlers: null,
48 | orderStyle: null,
49 | };
50 |
51 | export default OrderHandle;
52 |
--------------------------------------------------------------------------------
/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | A similar PR may already be submitted!
2 | Please search among the [Pull request](../../pulls) before creating one.
3 |
4 | Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:
5 |
6 | For more information, see the `CONTRIBUTING` guide.
7 |
8 |
9 | **Summary**
10 |
11 |
12 |
13 | This PR fixes/implements the following **bugs/features**
14 |
15 | * [ ] Bug 1
16 | * [ ] Bug 2
17 | * [ ] Feature 1
18 | * [ ] Feature 2
19 | * [ ] Breaking changes
20 |
21 |
22 |
23 | Explain the **motivation** for making this change. What existing problem does the pull request solve?
24 |
25 |
26 |
27 | **Test plan (required)**
28 |
29 | Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
30 |
31 |
32 |
33 | **Code formatting**
34 |
35 |
36 |
37 | **Closing issues**
38 |
39 |
40 | Fixes #
41 |
--------------------------------------------------------------------------------
/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | Your issue may already be reported!
2 | Please search on the [issue tracker](../../issues) before creating one.
3 |
4 | ## Expected Behavior
5 |
6 |
7 |
8 | ## Current Behavior
9 |
10 |
11 |
12 | ## Possible Solution
13 |
14 |
15 |
16 | ## Steps to Reproduce (for bugs)
17 |
18 |
19 | 1.
20 | 2.
21 | 3.
22 | 4.
23 |
24 | ## Context
25 |
26 |
27 |
28 | ## Your Environment
29 |
30 | * Version used:
31 | * Browser Name and version:
32 | * Operating System and version (desktop or mobile):
33 | * Link to your project:
34 |
--------------------------------------------------------------------------------
/src/widgets/ErrorWidget.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import PropTypes from 'prop-types';
3 | import { StyleSheet } from 'react-native';
4 | import Text from 'react-native-web-ui-components/Text';
5 | import { withTheme } from 'react-native-web-ui-components/Theme';
6 |
7 | const styles = StyleSheet.create({
8 | regular: {
9 | marginTop: -5,
10 | fontSize: 12,
11 | },
12 | auto: {
13 | marginTop: 0,
14 | marginBottom: 0,
15 | },
16 | first: {
17 | marginTop: -10,
18 | },
19 | last: {
20 | marginBottom: 10,
21 | },
22 | });
23 |
24 | const ErrorWidget = ({
25 | theme,
26 | children,
27 | last,
28 | first,
29 | auto,
30 | ...props
31 | }) => {
32 | const style = [
33 | styles.regular,
34 | { color: StyleSheet.flatten(theme.input.error.border).borderColor },
35 | props.style, // eslint-disable-line
36 | ];
37 | if (first) {
38 | style.push(styles.first);
39 | }
40 | if (last) {
41 | style.push(styles.last);
42 | }
43 | return (
44 |