Skip to content

Commit a4eb098

Browse files
committed
added new interfaces
relates #186
1 parent 2bbd714 commit a4eb098

File tree

5 files changed

+33
-2
lines changed

5 files changed

+33
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/indent */
22
interface ICategoryProps {
3-
setCategory: (val: string) => void
3+
formik: any
44
}
55

66
export default ICategoryProps;

client/src/interfaces/IFormik.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-disable @typescript-eslint/indent */
2+
interface IFormik {
3+
title: string,
4+
description: string,
5+
type: string,
6+
gallery: string[],
7+
category_id: string,
8+
}
9+
10+
export default IFormik;

client/src/interfaces/IImages.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* eslint-disable @typescript-eslint/indent */
2+
interface IImages {
3+
img1: {
4+
url: string,
5+
isLoading: boolean,
6+
},
7+
img2: {
8+
url: string,
9+
isLoading: boolean,
10+
},
11+
img3: {
12+
url: string,
13+
isLoading: boolean,
14+
},
15+
}
16+
17+
export default IImages;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/indent */
22
interface ITypeRadioProps {
3-
setType: (val: string) => void
3+
formik: any
44
}
55

66
export default ITypeRadioProps;

client/src/interfaces/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import IProductsCategoryProps from './ProductsCategory';
2929
import IProductsFilterProps from './IProductsFilterProps';
3030
import IChatBoxProps from './IChatBoxProps';
3131
import IProfilePopupProps from './IProfilePopupProps';
32+
import IFormik from './IFormik';
33+
import IImages from './IImages';
3234

3335
export {
3436
IProduct,
@@ -64,4 +66,6 @@ export {
6466
IProductsFilterProps,
6567
IChatBoxProps,
6668
IProfilePopupProps,
69+
IFormik,
70+
IImages,
6771
};

0 commit comments

Comments
 (0)