chore: -rm stale discount code

This commit is contained in:
amhsirak
2026-01-19 14:33:09 +05:30
parent d96811cf99
commit 17fab54765

View File

@@ -18,15 +18,12 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
const { t } = useTranslation();
const navigate = useNavigate();
const location = useLocation();
const { notify } = useGlobalInfoStore();
const [sponsorModalOpen, setSponsorModalOpen] = useState(false);
const [docModalOpen, setDocModalOpen] = useState(false);
const [starCount, setStarCount] = useState<number | null>(null);
const [isLoading, setIsLoading] = useState(false);
const ossDiscountCode = "MAXUNOSS8";
useEffect(() => {
const fetchStarCount = async () => {
setIsLoading(true);
@@ -70,15 +67,6 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
}
};
const copyDiscountCode = () => {
navigator.clipboard.writeText(ossDiscountCode).then(() => {
notify("success", "Discount code copied to clipboard!");
}).catch(err => {
console.error('Failed to copy text: ', err);
notify("error", "Failed to copy discount code.");
});
};
const defaultcolor = theme.palette.mode === 'light' ? 'black' : 'white';
const buttonStyles = {