fix: placeholder not displaying

This commit is contained in:
2024-04-06 01:48:39 +08:00
parent a4b3a57e1d
commit 7d32a8ecd7
Signed by: LuoRain
GPG key ID: 16B4D3D5372966A6
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ export default class AuthorizePage extends IndexPage {
view() { view() {
if (!app.session.user) { if (!app.session.user) {
return <Placeholder>{app.translator.trans("rhodes-island-oauth-center.forum.authorize.not_logged_in")}</Placeholder>; return <Placeholder text={app.translator.trans("rhodes-island-oauth-center.forum.authorize.not_logged_in")}/>;
} }
if (this.loading) { if (this.loading) {
return <LoadingIndicator></LoadingIndicator>; return <LoadingIndicator></LoadingIndicator>;

View file

@ -37,7 +37,7 @@ export default class AuthorizedPage extends UserPage {
content() { content() {
if (this.records.length == 0) { if (this.records.length == 0) {
return <Placeholder>{app.translator.trans('rhodes-island-oauth-center.forum.authorized.no_records')}</Placeholder>; return <Placeholder text={app.translator.trans('rhodes-island-oauth-center.forum.authorized.no_records')}/>;
} }
return ( return (