Skip to content

Commit

Permalink
Merge pull request #71 from Purple-books-company/shalini-dev
Browse files Browse the repository at this point in the history
Altered
  • Loading branch information
Yuvaraj2111 authored Jul 9, 2021
2 parents cf2624d + a7f3e12 commit b2ee81a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/pages/home/components/Sliders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Block, Image } from "../../../../styles/pages/home-page";

let slides;

function Sliders({ data, text, slug }) {
function Sliders({ data, text, slug, offer }) {
let history = useHistory();
const [id, setId] = useState(null);
const [settings, setSettings] = useState(null);
Expand Down Expand Up @@ -132,7 +132,7 @@ function Sliders({ data, text, slug }) {
))}
</Slider>

{id !== null && (
{offer && (
<Link to={`/offers/${id}`} className="text-right w-100 py-5">
Show More
</Link>
Expand Down
1 change: 1 addition & 0 deletions src/components/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function Home() {
text={sale.name}
slug={index}
key={sale.name}
offer="true"
/>
))}

Expand Down
3 changes: 1 addition & 2 deletions src/services/api/loaded-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ async function getCategory() {
async function getHome() {
if (customer) {
home = await ApiGetService(
process.env.REACT_APP_HOME_LOGGED + customer.id + "/"
process.env.REACT_APP_HOME_URL + customer.id + "/"
);
console.log(home);
} else home = await ApiGetService(process.env.REACT_APP_HOME_URL);
}

Expand Down

0 comments on commit b2ee81a

Please sign in to comment.