return marking-document pag for d2c

This commit is contained in:
smanylov
2026-03-11 10:53:09 +07:00
parent 413daf37d6
commit fa60a79241
4 changed files with 3 additions and 23 deletions
+1 -6
View File
@@ -5,9 +5,7 @@ import { usePathname } from 'next/navigation';
import { useTranslations } from 'next-intl';
import { useSideMenuStore } from '@/app/stores/sideMenuStore';
export default function DropDownList(
{ referralLink }: { referralLink: string | null }
) {
export default function DropDownList() {
const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/');
const [dropDownExpanded, setDropDownExpanded] = useState(false);
const t = useTranslations('Global');
@@ -56,9 +54,6 @@ export default function DropDownList(
</div>
<ul className={`sub-menu ${dropDownExpanded ? 'expanded' : ''}`}>
{links.map((link) => {
if (referralLink && link.name === 'document-marking') {
return null;
}
return (
<Link
key={link.name}
+1 -1
View File
@@ -128,7 +128,7 @@ export default function NavLinks() {
<p className="">{t('home')}</p>
</Link>
<DropDownList referralLink={referralLink} />
<DropDownList />
{links.map((link) => {
if (!referralLink && link.name === 'referral-program') {