Closed alexcarpenter closed 2 weeks ago
Latest commit: 247a10ff1a8635b6d6e31bfa82d2dccef134efc0
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Description
Introduce three new hooks based on current usage across
<SignIn />
<SignUp />
components:useLocalization
- access botht
andtranslateError
functions throughout componentsuseAttributes
- access field attributes such asenabled
orrequired
useDisplayConfig
- access display config settings such asapplicationName
,homeUrl
,logoImageUrl
Currently I am just updating the usage within the sign-in/up flows. Likely in a follow up PR we may refactor the common components to access this data internally using these hooks vs needing to pass the data in as props within the sign-in/up components.
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change