Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Injecting Template or Template props on KcApp #191

@julio-louzada

Description

@julio-louzada

First of all thanks for the great work!

I'm trying to use Keycloakify with the least cost of development, but there is a huge gap between only changing the css and adding any kind of customization involving js or html. My current use case is to simply add a logo on the Header Title (for ex. Sign In on the Login page).

I'm unable to do it in a simple manner because the base component Template.tsx is hardcoded on the page components, which makes it impossible to change the Header for every page (I'd need to copy-paste everything for a simple props change in Template).

Would it be possible to have injected the Template component inside KcApp or at least make the props from the Template component available to KcApp? (some care must be taken since we need to access runtime props like i18n when passing them down, so we can continue to use the good support already existing in Keycloakify.

Many thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions