Skip to content

Commit

Permalink
add claim button (fake)
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Oct 10, 2024
1 parent e61c9b1 commit 0d9eef5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/games/Puzzle15.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid, Box } from '@chakra-ui/react';
import { Grid, Box, Flex, Button } from '@chakra-ui/react';
import { motion } from 'framer-motion';
import React, { useState, useEffect, useCallback, useRef } from 'react';

Expand Down Expand Up @@ -134,7 +134,7 @@ const Puzzle15 = () => {
}, [ isWon, moveTile ]);

return (
<>
<Flex flexDirection="column" alignItems="center" justifyContent="center">
<Grid templateColumns="repeat(4, 1fr)" w="400px" h="400px">
{ tiles.map((tile, index) => (
<motion.div
Expand Down Expand Up @@ -175,8 +175,8 @@ const Puzzle15 = () => {
</motion.div>
)) }
</Grid>
{ isWon && <p>Congratulations! You solved the puzzle!</p> }
</>
{ isWon && <Button mt={ 10 }>Claim NFT</Button> }
</Flex>
);
};

Expand Down

0 comments on commit 0d9eef5

Please sign in to comment.