Skip to content

Commit

Permalink
Reorders mobile cards
Browse files Browse the repository at this point in the history
  • Loading branch information
perryraskin committed Sep 14, 2023
1 parent c999e93 commit 4e9ac48
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,16 @@ const Home = () => {
: [months[0], months[1], months[2]].map((item) => {
if (item) {
return (
<Card key={item.name} className="shadow-md">
<Card
key={item.name}
className={classNames(
"shadow-md",
item === months[2]
? "order-first sm:order-none"
: "",
item === months[0] ? "order-last sm:order-none" : ""
)}
>
<Title>{item.name}</Title>
{/* <Text>{item.name}</Text> */}
<List>
Expand Down Expand Up @@ -755,7 +764,7 @@ const Home = () => {
</Card>
</div>
) : (
<div className="mt-6">
<div className="mt-6 max-w-lg">
<Card>
<div className="sm:flex space-y-2 sm:space-y-0 sm:space-x-2 space-x-0 justify-end">
{/* <MultiSelectBox
Expand Down Expand Up @@ -795,7 +804,7 @@ const Home = () => {
</div>

{/* TABLE FOR DESKTOP */}
<Table className="mt-6 max-w-md">
<Table className="mt-6">
<TableHead>
<TableRow>
<TableHeaderCell>Merchant</TableHeaderCell>
Expand Down

1 comment on commit 4e9ac48

@vercel
Copy link

@vercel vercel bot commented on 4e9ac48 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

raskfin – ./

raskfin-git-main-perryraskin.vercel.app
raskfin.vercel.app
raskfin-perryraskin.vercel.app

Please sign in to comment.