Apply theme to app pages

This commit is contained in:
Nicola Benaglia
2025-04-20 19:33:38 +02:00
parent e8ccfb3d46
commit 8d20f1a6db
7 changed files with 88 additions and 53 deletions

View File

@@ -91,6 +91,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
}
}
}, []);
useEffect(() => {
if (hasCalledRef.current) return;
if (!app) return;
@@ -108,6 +109,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
message: `Would you like to rate this app a rating of ${newValue}?. It will create a POLL tx.`,
publishFee: fee.fee + ' QORT',
});
if (hasPublishedRating === false) {
const pollName = `app-library-${app.service}-rating-${app.name}`;
const pollOptions = [`1, 2, 3, 4, 5, initialValue-${newValue}`];