Skip to content

Commit

Permalink
added new interfaces
Browse files Browse the repository at this point in the history
relates #186
  • Loading branch information
SaraDahman committed Nov 16, 2022
1 parent 2bbd714 commit a4eb098
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/interfaces/ICategoryRadioProps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/indent */
interface ICategoryProps {
setCategory: (val: string) => void
formik: any
}

export default ICategoryProps;
10 changes: 10 additions & 0 deletions client/src/interfaces/IFormik.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable @typescript-eslint/indent */
interface IFormik {
title: string,
description: string,
type: string,
gallery: string[],
category_id: string,
}

export default IFormik;
17 changes: 17 additions & 0 deletions client/src/interfaces/IImages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-disable @typescript-eslint/indent */
interface IImages {
img1: {
url: string,
isLoading: boolean,
},
img2: {
url: string,
isLoading: boolean,
},
img3: {
url: string,
isLoading: boolean,
},
}

export default IImages;
2 changes: 1 addition & 1 deletion client/src/interfaces/ITypeRadioProps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/indent */
interface ITypeRadioProps {
setType: (val: string) => void
formik: any
}

export default ITypeRadioProps;
4 changes: 4 additions & 0 deletions client/src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import IProductsCategoryProps from './ProductsCategory';
import IProductsFilterProps from './IProductsFilterProps';
import IChatBoxProps from './IChatBoxProps';
import IProfilePopupProps from './IProfilePopupProps';
import IFormik from './IFormik';
import IImages from './IImages';

export {
IProduct,
Expand Down Expand Up @@ -64,4 +66,6 @@ export {
IProductsFilterProps,
IChatBoxProps,
IProfilePopupProps,
IFormik,
IImages,
};

0 comments on commit a4eb098

Please sign in to comment.