diff --git a/src/app/pacto/[id]/page.jsx b/src/app/pacto/[id]/page.jsx index d02e105..e57a741 100644 --- a/src/app/pacto/[id]/page.jsx +++ b/src/app/pacto/[id]/page.jsx @@ -9,14 +9,11 @@ import { Suspense } from "react"; export default async function Propuesta({params:{id}, searchParams:{version}}) { const project = await fetchProjectId(id,version) if (project) return (
- }>
- -
) else return (

Todavia no hay pacto

diff --git a/src/components/pacto/body/pacto/article.jsx b/src/components/pacto/body/pacto/article.jsx index 4113040..1b2602a 100644 --- a/src/components/pacto/body/pacto/article.jsx +++ b/src/components/pacto/body/pacto/article.jsx @@ -17,7 +17,6 @@ export default function Article({ project, article }) { const [dislikes, setDislikes] = useState(article.dislikes); const [showComments, setShowComments] = useState(false); const { language } = useLanguage(); - const handleLike = async () => { const resp = await toLike( `/projects/${project._id}/articles/${article._id}` @@ -60,7 +59,7 @@ export default function Article({ project, article }) { return (
-
+
@@ -70,7 +69,7 @@ export default function Article({ project, article }) {
-
Comentar
- + }
{showComments && ( diff --git a/src/components/pacto/form/articleForm.jsx b/src/components/pacto/form/articleForm.jsx index 495c8e1..0ba40f8 100644 --- a/src/components/pacto/form/articleForm.jsx +++ b/src/components/pacto/form/articleForm.jsx @@ -9,6 +9,8 @@ const ArticleForm = forwardRef(({ article, moveArticleUp, moveArticleDown, toggl const [articleId] = useState(article._id || null); const [text_es, setText_es] = useState(article.text_es || ''); const [text_pt, setText_pt] = useState(article.text_pt || ''); + const [notInteractive, setNotIteractive] = useState(article.notInteractive || false) + // const [position, setPosition] = useState(article.position || 1); const summary_es_ref = useRef(null); const summary_pt_ref = useRef(null); @@ -31,6 +33,7 @@ const ArticleForm = forwardRef(({ article, moveArticleUp, moveArticleDown, toggl } if(deleted) output.deleted = true if(articleId) output._id = articleId + output.notInteractive = notInteractive return output }, getCurrentTextEs() { @@ -66,12 +69,17 @@ const ArticleForm = forwardRef(({ article, moveArticleUp, moveArticleDown, toggl setDeleted(!deleted) } + return (

Artículo {!articleId && Nuevo }

+
{ @@ -98,6 +106,5 @@ const ArticleForm = forwardRef(({ article, moveArticleUp, moveArticleDown, toggl ) }) -ArticleForm.displayName = 'ArticleForm'; export default ArticleForm; diff --git a/src/components/pacto/form/projectForm.jsx b/src/components/pacto/form/projectForm.jsx index 7d392f3..86c51ea 100644 --- a/src/components/pacto/form/projectForm.jsx +++ b/src/components/pacto/form/projectForm.jsx @@ -78,6 +78,7 @@ export default function ProjectFormComponent({project, newVersion}) { clientId: getRandomClientId(), text_es: article.text_es, text_pt: article.text_pt, + notInteractive: article.notInteractive, } }) } diff --git a/src/components/pacto/header/index.jsx b/src/components/pacto/header/index.jsx index 07b131b..e6a91be 100644 --- a/src/components/pacto/header/index.jsx +++ b/src/components/pacto/header/index.jsx @@ -1,10 +1,8 @@ -import UserAvatar from "../../common/user-avatar"; import ClosingDate from "../../common/closing-date"; import ArticlesCommentsCounter from "../../common/article-comment-counter"; import ProjectHeaderVersion from "../../common/project-version"; import ProgressBar from "../../common/progresBar"; import ClosingProject from "../../common/closing-project"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faShareNodes } from "@fortawesome/free-solid-svg-icons"; import Link from "next/link"; import StageProject from "@/components/common/stage-project"; diff --git a/src/static/scss/pacto.scss b/src/static/scss/pacto.scss index b5a47d3..f002aaa 100644 --- a/src/static/scss/pacto.scss +++ b/src/static/scss/pacto.scss @@ -283,6 +283,10 @@ } .article { + .card-article-title { + border: none!important; + box-shadow: none!important; + } .card-article { .card-footer { padding: 0.5rem 1rem;