Skip to content

Commit

Permalink
xscroll issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vijay-murugeasan committed Jan 2, 2024
1 parent b784eea commit c051380
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/features/home/Categories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ function Categories() {
{category &&
category.map((item) => {
return (
<div
className="item_version_2"
style={{ padding: "10px" }}
key={item.id}
>
<div className="item_version_2" key={item.id}>
<Link onClick={(e) => e.preventDefault()}>
<figure style={{ border: "2px solid" }}>
<span>{item.count}</span>
Expand Down
5 changes: 4 additions & 1 deletion src/features/restaurants/TypeDelivery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ function TypeDelivery({ handleFilterKey, filterKeyValue, setOpen, open }) {
},
];

function handleFilterChange(e) {
handleFilterKey(e.target.value);
}
return (
<div className="filters_full clearfix add_bottom_15">
<div className="container">
Expand All @@ -32,7 +35,7 @@ function TypeDelivery({ handleFilterKey, filterKeyValue, setOpen, open }) {
name="type_d"
value={type.value}
id={type.value}
onChange={() => handleFilterKey(type.filter)}
onChange={handleFilterChange}
className={
filterKeyValue === type.filter ? "selected" : ""
}
Expand Down

0 comments on commit c051380

Please sign in to comment.