Skip to content

Commit

Permalink
Demo how to import image in React
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jan 11, 2024
1 parent ce3092d commit c3e7067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/keycloak-theme/login/Template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { type TemplateProps } from "keycloakify/login/TemplateProps";
import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
import type { KcContext } from "./kcContext";
import type { I18n } from "./i18n";
import keycloakifyLogoPngUrl from "./assets/keycloakify-logo.png";

export default function Template(props: TemplateProps<KcContext, I18n>) {
const {
Expand Down Expand Up @@ -59,6 +60,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
style={{ "fontFamily": '"Work Sans"' }}
>
{msg("loginTitleHtml", realm.displayNameHtml)}!!!
<img src={keycloakifyLogoPngUrl} alt="Keycloakify logo" width={50} />
</div>
</div>

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c3e7067

Please sign in to comment.