Update forkable roadmap

feat/version
Kamran Ahmed 12 months ago
parent 34c2b932da
commit 985d2e9692
  1. 3
      src/components/CreateVersion/CreateVersion.tsx
  2. 21
      src/data/roadmaps/frontend/frontend-forkable.json

@ -71,7 +71,6 @@ export function CreateVersion(props: CreateVersionProps) {
import.meta.env.PUBLIC_EDITOR_APP_URL import.meta.env.PUBLIC_EDITOR_APP_URL
}/${response?.roadmapId}`; }/${response?.roadmapId}`;
setIsCreating(false);
window.open(roadmapEditorUrl, '_blank'); window.open(roadmapEditorUrl, '_blank');
} }
@ -122,7 +121,7 @@ export function CreateVersion(props: CreateVersionProps) {
return ( return (
<button <button
disabled={isCreating} disabled={isCreating}
className="flex items-center justify-center rounded-md border bg-gray-50 px-2.5 py-1 text-xs font-medium text-black hover:bg-gray-200 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:hover:bg-gray-100 max-sm:hidden sm:text-sm" className="flex items-center justify-center rounded-md border border-gray-300 bg-gray-50 px-2.5 py-1 text-xs font-medium text-black hover:bg-gray-200 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:hover:bg-gray-100 max-sm:hidden sm:text-sm"
onClick={() => { onClick={() => {
if (!isLoggedIn()) { if (!isLoggedIn()) {
showLoginPopup(); showLoginPopup();

@ -74,7 +74,7 @@
"type": "title", "type": "title",
"position": { "position": {
"x": -209.5, "x": -209.5,
"y": -102.59925177765109 "y": -62.59925177765109
}, },
"selected": false, "selected": false,
"data": { "data": {
@ -90,7 +90,7 @@
"dragging": false, "dragging": false,
"positionAbsolute": { "positionAbsolute": {
"x": -209.5, "x": -209.5,
"y": -102.59925177765109 "y": -62.59925177765109
}, },
"focusable": true "focusable": true
}, },
@ -1436,12 +1436,12 @@
}, },
{ {
"width": 20, "width": 20,
"height": 150, "height": 67,
"id": "LEijbLyxg4RyutKEM2Y5g", "id": "LEijbLyxg4RyutKEM2Y5g",
"type": "vertical", "type": "vertical",
"position": { "position": {
"x": -137, "x": -137,
"y": -252.5992517776511 "y": -129.5992517776511
}, },
"selected": false, "selected": false,
"data": { "data": {
@ -1450,17 +1450,22 @@
"strokeDasharray": "0.8 8", "strokeDasharray": "0.8 8",
"strokeLinecap": "round", "strokeLinecap": "round",
"strokeWidth": 3.5, "strokeWidth": 3.5,
"stroke": "black" "stroke": "#0A33FF"
}, },
"oldId": "xD07fJ1NmNeAarVCEfubU" "oldId": "xD07fJ1NmNeAarVCEfubU"
}, },
"zIndex": 999, "zIndex": 999,
"positionAbsolute": { "positionAbsolute": {
"x": -137, "x": -137,
"y": -252.5992517776511 "y": -129.5992517776511
}, },
"dragging": false, "dragging": false,
"focusable": true "focusable": true,
"style": {
"width": 20,
"height": 67
},
"resizing": false
}, },
{ {
"width": 176, "width": 176,
@ -3876,7 +3881,7 @@
"selected": false, "selected": false,
"data": { "data": {
"label": "Performance Best Practices", "label": "Performance Best Practices",
"href": "", "href": "https://roadmap.sh/best-practices/frontend-performance",
"color": "#ffffff", "color": "#ffffff",
"backgroundColor": "#4136d6", "backgroundColor": "#4136d6",
"style": { "style": {

Loading…
Cancel
Save