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 useFigmaToken
src/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:
Problem:
The
useFigmaTokenhook is still exported as a default export, resulting in inconsistent API across hooks (which use named exports elsewhere).References:
Citations:
Code Snippets
src/hooks/useFigmaToken. ts:
src/hooks/index.ts:
CHANGELOG.md: