Skip to content

Commit

Permalink
Merge pull request #11 from DenverCoder544/guidedtour_bugfix
Browse files Browse the repository at this point in the history
reactify guided tour for asdi-login bundle
  • Loading branch information
ZakarFin committed Dec 11, 2023
2 parents 69b0bac + 750ea20 commit 644e3b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bundles/asdi-login/instance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import React from 'react';
import { Message } from 'oskari-ui';

/**
* @class Oskari.asdi.login.BundleInstance
*/
Expand Down Expand Up @@ -58,9 +61,7 @@ Oskari.clazz.define('Oskari.asdi.login.BundleInstance',
return this.locale.guidedTour.title;
},
getContent: function () {
var content = jQuery('<div></div>');
content.append(this.locale.guidedTour.message);
return content;
return <Message bundleKey={this.getName()} messageKey='guidedTour.message' allowHTML />;
},
getLinks: function () {
// No links to show
Expand Down

0 comments on commit 644e3b8

Please sign in to comment.