mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 20:21:50 +02:00
Add label to help us add resources
This commit is contained in:
@@ -26,8 +26,7 @@ import { getUrlParams, parseUrl } from '../../lib/browser';
|
|||||||
import { Spinner } from '../ReactIcons/Spinner';
|
import { Spinner } from '../ReactIcons/Spinner';
|
||||||
import { GitHubIcon } from '../ReactIcons/GitHubIcon.tsx';
|
import { GitHubIcon } from '../ReactIcons/GitHubIcon.tsx';
|
||||||
import {
|
import {
|
||||||
resourceTitleFromId,
|
type AllowedRoadmapRenderer
|
||||||
type AllowedRoadmapRenderer,
|
|
||||||
} from '../../lib/roadmap.ts';
|
} from '../../lib/roadmap.ts';
|
||||||
import { lockBodyScroll } from '../../lib/dom.ts';
|
import { lockBodyScroll } from '../../lib/dom.ts';
|
||||||
import { TopicDetailLink } from './TopicDetailLink.tsx';
|
import { TopicDetailLink } from './TopicDetailLink.tsx';
|
||||||
@@ -660,26 +659,7 @@ export function TopicDetail(props: TopicDetailProps) {
|
|||||||
className="hidden items-center justify-center rounded-md px-2 py-2 text-sm transition-all hover:bg-gray-200 sm:flex"
|
className="hidden items-center justify-center rounded-md px-2 py-2 text-sm transition-all hover:bg-gray-200 sm:flex"
|
||||||
>
|
>
|
||||||
<GitHubIcon className="mr-2 inline-block h-4 w-4 text-current" />
|
<GitHubIcon className="mr-2 inline-block h-4 w-4 text-current" />
|
||||||
Help us Improve this Content
|
Help us add resources to this topic
|
||||||
</a>
|
|
||||||
|
|
||||||
<a
|
|
||||||
href={tnsLink}
|
|
||||||
className="hidden rounded-md border bg-gray-200 px-2 py-1.5 text-sm hover:bg-gray-300 min-[390px]:block sm:hidden"
|
|
||||||
onClick={() => {
|
|
||||||
window.fireEvent({
|
|
||||||
category: 'PartnerClick',
|
|
||||||
action: 'TNS Redirect',
|
|
||||||
label: 'Roadmap Topic / TNS Link',
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<span className="badge mr-1.5">Partner</span>
|
|
||||||
Visit{' '}
|
|
||||||
<span className="font-medium underline underline-offset-1">
|
|
||||||
TheNewStack.io
|
|
||||||
</span>{' '}
|
|
||||||
for {resourceTitleFromId(resourceId)} news
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user