Skip to content

Commit

Permalink
feat: motion
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Dec 30, 2024
1 parent c101256 commit 5982720
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ import styles from './index.module.less'

const boxCount = Array.apply(null, Array(10))

Check warning on line 44 in src/pages/home/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unused local symbol

Unused constant boxCount

const preCode = `
const GroceryItem: React.FC<GroceryItemProps> = ({ item }) => {
return (
<div>
<h2>{item.name}</h2>
<p>Price: {item.price}</p>
<p>Quantity: {item.quantity}</p>
</div>
);
};
`.trim()

const Home = () => {
const [aiText, setAiText] = useState('')
const aiTextRef = useRef(null)
Expand Down Expand Up @@ -447,19 +459,7 @@ const Home = () => {
</Marquee>
</section>
<section style={{ margin: 20 }}>
<ShiCode
preCode={`
const GroceryItem: React.FC<GroceryItemProps> = ({ item }) => {
return (
<div>
<h2>{item.name}</h2>
<p>Price: {item.price}</p>
<p>Quantity: {item.quantity}</p>
</div>
);
}
`}
/>
<ShiCode preCode={preCode} />
</section>
<section style={{ margin: 20 }}>
<DynamicBackground />
Expand Down

0 comments on commit 5982720

Please sign in to comment.