Skip to content

Commit

Permalink
Merge pull request #280 from healthy-food-and-dietary-products/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jsapro committed Jan 11, 2024
2 parents 99ada5d + 22fd3aa commit e1c064f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/making-order-btn/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import styles from './making-order-btn.module.scss';
import Button from '@components/button';
import type { ButtonProps } from '@components/button';
import Button from '@components/Button';
import type { ButtonProps } from '@components/Button';

interface MakingOrderBtnProps extends Pick<ButtonProps, 'disabled' | 'onClick'> {}

Expand Down
2 changes: 1 addition & 1 deletion src/components/payment-button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';
import api from '@services/api';
import Button from '@components/button';
import Button from '@components/Button';
import styles from './payment-button.module.scss';

type PaymentButtonProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/product-card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import Button from '@components/button';
import Button from '@components/Button';
import styles from './product-card.module.scss';
import { BASE_URL } from '@data/constants.ts';
import LikeIcon from '@images/like-icon.svg?react';
Expand Down
3 changes: 2 additions & 1 deletion src/components/shopping-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ type ProductItem = {
photo: string;
category: string;
quantity: number;
created_at: number;
final_price: number;
total_price: number;
amount: number;
measure_unit: string;
};

type CartDataItem = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/top-selling-this-week/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import api from '@services/api';
import type { Product } from '@services/generated-api/data-contracts';
import Button from '@components/button';
import Button from '@components/Button';
import ProductCard from '@components/product-card';
import styles from './top-selling-this-week.module.scss';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/product/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import styles from './product.module.scss';
import Button from '@components/button';
import Button from '@components/Button';
import { useParams } from 'react-router';
import api from '@services/api.ts';
import Preloader from '@components/preloader';
Expand Down

0 comments on commit e1c064f

Please sign in to comment.