-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem:
The useFigmaToken hook is still exported as a default export, resulting in inconsistent API across hooks (which use named exports elsewhere).
References:
- src/hooks/useFigmaToken.ts
- src/hooks/index.ts
Citations:
- src/hooks/useFigmaToken. ts
- src/hooks/index.ts
Code Snippets
src/hooks/useFigmaToken. ts:
const useFigmaToken = (): string | null => {
const { token } = useFigmaTokenContext()
return token
}
export default useFigmaTokensrc/hooks/index.ts:
export { default as useFigmaToken } from 'hooks/useFigmaToken'CHANGELOG.md:
## ⚠️ BREAKING CHANGES
#### **`useFigmaToken` Export Changed**
`useFigmaToken` is now a **named export** instead of a default export for consistency with the rest of the library:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working