ordering-ui-react-native 0.12.93 → 0.12.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.12.93",
3
+ "version": "0.12.94",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -6,7 +6,7 @@ import { useTheme } from 'styled-components/native';
6
6
  import { NotFound, NotFoundImage } from './styles';
7
7
 
8
8
  export const NotFoundSource = (props: NotFoundSourceParams) => {
9
- const { image, content, btnTitle, conditioned, onClickButton } = props;
9
+ const { image, content, btnTitle, conditioned, onClickButton, textSize } = props;
10
10
  const theme = useTheme();
11
11
 
12
12
  const errorImage = image || theme.images.general.notFound;
@@ -21,7 +21,7 @@ export const NotFoundSource = (props: NotFoundSourceParams) => {
21
21
  {content && conditioned && !errorImage && (
22
22
  <OText
23
23
  color={theme.colors.textSecondary}
24
- size={18}
24
+ size={textSize ?? 18}
25
25
  style={{ textAlign: 'center' }}>
26
26
  {content}
27
27
  </OText>
@@ -29,7 +29,7 @@ export const NotFoundSource = (props: NotFoundSourceParams) => {
29
29
  {content && !conditioned && (
30
30
  <OText
31
31
  color={theme.colors.textSecondary}
32
- size={18}
32
+ size={textSize ?? 18}
33
33
  style={{ textAlign: 'center' }}>
34
34
  {content}
35
35
  </OText>
@@ -232,6 +232,7 @@ export interface NotFoundSourceParams {
232
232
  conditioned?: boolean;
233
233
  onClickButton?: any;
234
234
  children?: any;
235
+ textSize?: number;
235
236
  }
236
237
  export interface MessagesOptionParams {
237
238
  orders?: any;