Skip to content

Commit

Permalink
feat(orders): no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TanNguyen17112003 committed Oct 3, 2023
1 parent a6357a6 commit 3fcb277
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 2 additions & 2 deletions src/components/home/Orders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const Orders: Component<{ orders: OrderData[] }> = ({ orders }) => {

const scrollLeft = () => {
if (sliderRef.current) {
sliderRef.current.scrollLeft -= 400;
sliderRef.current.scrollLeft -= 500;
}
};
const scrollRight = () => {
if (sliderRef.current) {
sliderRef.current.scrollLeft += 400;
sliderRef.current.scrollLeft += 500;
}
};
return (
Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
overflow-x: auto;
padding: 10px 0;
scrollbar-width: none;
transition: transform 0.3s ease;
-ms-overflow-style: none;
scroll-behavior: smooth;
}

.slider-container::-webkit-scrollbar {
Expand Down

0 comments on commit 3fcb277

Please sign in to comment.