Skip to content

Commit

Permalink
Fix build example (#585)
Browse files Browse the repository at this point in the history
fix: Fix build
  • Loading branch information
kmkzt authored Mar 6, 2023
1 parent 309690d commit b4ec9bc
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions examples/react/pages/demo/img-trace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ import {
ImgLoader,
} from '@svg-drawing/img-trace'
import { useState, useCallback, useRef, useEffect } from 'react'
import {
Box,
Flex,
Button,
Card,
Image,
Heading,
} from 'rebass/styled-components'
import { Box, Flex, Button, Image, Heading } from 'rebass/styled-components'
import Layout from '../../components/Layout'
import { basePath } from '../../config/paths'
import type { Svg } from '@svg-drawing/core'
Expand Down Expand Up @@ -259,9 +252,9 @@ export default () => {
</Box>
<Flex flexWrap="wrap">
{list.map((l, i) => (
<Card key={i} width="256px">
<Image src={l} alt={l} onClick={handleSelect(l)} />
</Card>
<div key={i} style={{ width: '256px' }} onClick={handleSelect(l)}>
<img src={l} alt={l} />
</div>
))}
</Flex>
</Box>
Expand Down

1 comment on commit b4ec9bc

@vercel
Copy link

@vercel vercel bot commented on b4ec9bc Mar 6, 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:

svg-drawing – ./

svg-drawing-kmkzt.vercel.app
svg-drawing-git-master-kmkzt.vercel.app
svg-drawing.vercel.app

Please sign in to comment.