chakra-ui / chakra-ui-docs

Documentation website for chakra ui
https://chakra-ui.com
MIT License
301 stars 477 forks source link

Fix syntax error by using `numberInputAnatomy` #1511

Closed Nishchit-Dev closed 1 year ago

Nishchit-Dev commented 1 year ago

Fix syntax error by using numberInputAnatomy in createMultiStyleConfigHelpers function call, which will prevent compilation error while running app

Closes #

📝 Description

The issue was a syntax error caused by passing an undefined variable to a function call. The code was importing numberInputAnatomy but mistakenly used numberAnatomy.keys instead. This caused the function call to fail, leading to the error. The fix involved simply correcting the variable name to use numberInputAnatomy.keys.

⛳️ Current behavior (updates)

Code Will be working as Expected after updating the syntax without any compilation error

🚀 New behavior

The corrected code properly defines functions based on numberInputAnatomy object and executes without any syntax errors.

💣 Is this a breaking change (Yes/No):

No

📝 Additional Information

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-docs ✅ Ready (Inspect) Visit Preview Apr 4, 2023 7:39pm