mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-14 01:59:05 +03:00
fix: reorder
This commit is contained in:
@@ -20,6 +20,15 @@ export default function SupportBanner({ user }: { user: UserDocument }) {
|
||||
localStorage.setItem("SHOW_SUPPORT_TACHI", `${show}`);
|
||||
}, [show]);
|
||||
|
||||
// thank you
|
||||
if (user.isSupporter) {
|
||||
return (
|
||||
<div className="d-flex w-100 justify-content-center flex-column align-items-center">
|
||||
<div>❤️❤️❤️ Thank you for supporting {TachiConfig.name}. ❤️❤️❤️</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
return <></>;
|
||||
}
|
||||
@@ -37,15 +46,6 @@ export default function SupportBanner({ user }: { user: UserDocument }) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
// thank you
|
||||
if (user.isSupporter) {
|
||||
return (
|
||||
<div className="d-flex w-100 justify-content-center flex-column align-items-center">
|
||||
<div>❤️❤️❤️ Thank you for supporting {TachiConfig.name}. ❤️❤️❤️</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (!show) {
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user