Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
adjust button style
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Jan 10, 2024
1 parent 8751271 commit 7b087d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/match/ImageCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ export default function ImageCard({
>
<Button
display="primary"
style={{
paddingLeft: 40,
}}
disabled={selectedIndex === 0}
onClick={() => {
if (selectedIndex - 1 < 0) {
Expand Down Expand Up @@ -159,6 +162,9 @@ export default function ImageCard({
))}
<Button
display="primary"
style={{
paddingLeft: 40,
}}
disabled={selectedIndex === allData.length - 1}
onClick={() => {
if (selectedIndex + 1 > allData.length - 1) {
Expand All @@ -167,7 +173,6 @@ export default function ImageCard({
setSelectedIndex(selectedIndex + 1);
}
}}
style={{ padding: 20 }}
startIcon={<ArrowForwardIosIcon />}
/>
</div>
Expand Down

0 comments on commit 7b087d1

Please sign in to comment.