Skip to content

Commit

Permalink
chore: yarn/cairo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
broody committed Sep 19, 2023
1 parent 0b4a549 commit 41ad875
Show file tree
Hide file tree
Showing 13 changed files with 835 additions and 664 deletions.
1 change: 1 addition & 0 deletions src/tests/trade.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ const QUANTITY: usize = 3;
// assert(player.drug_count == QUANTITY - 1, 'wrong sell amount');
// }


1 change: 1 addition & 0 deletions src/tests/travel.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ const WEED_ID: felt252 = 0x57656564; // weed
// assert(player.location_id == queens_id, 'should have traveled');
// }


6 changes: 5 additions & 1 deletion web/src/components/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ const Leaderboard = ({
</Text>
)}
</UnorderedList>
{hasNextPage && <Button variant="pixelated" onClick={fetchNextPage}>Load More</Button>}
{hasNextPage && (
<Button variant="pixelated" onClick={fetchNextPage}>
Load More
</Button>
)}
</VStack>

{/* Naming modale */}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Toast = ({
p={["8px", "20px"]}
mb={["16px", "20px"]}
fontSize={["14px", "16px"]}
lineHeight={["1.2","1.5"]}
lineHeight={["1.2", "1.5"]}
bgColor="neon.200"
color="neon.900"
justify="space-between"
Expand Down
8 changes: 6 additions & 2 deletions web/src/components/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const coordinate: CoordinateType = {
[Location.Brooklyn]: { x: 0, y: -0 },
};

const yOffset = -150
const yOffset = -150;

export const Map = ({
target,
Expand All @@ -35,7 +35,11 @@ export const Map = ({
useEffect(() => {
if (target !== undefined) {
const animation = isMobile
? { scale: 1.5, x: coordinate[target].x , y: coordinate[target].y +yOffset}
? {
scale: 1.5,
x: coordinate[target].x,
y: coordinate[target].y + yOffset,
}
: { scale: 1, x: 0, y: 0 };
animate(
scope.current,
Expand Down
Loading

1 comment on commit 41ad875

@vercel
Copy link

@vercel vercel bot commented on 41ad875 Sep 19, 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:

rollyourown – ./

rollyourown-git-main.preview.cartridge.gg
rollyourown.preview.cartridge.gg

Please sign in to comment.