Skip to content

Commit

Permalink
fix other tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignaherrero committed Apr 7, 2022
1 parent fb3112a commit 6f4a7b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function Home() {
} = useForm();

useEffect(() => {

setArticles({ found: "pending" });
const getOtherPage = async () => {
console.log(getValues("article"))
Expand Down Expand Up @@ -60,17 +59,15 @@ export default function Home() {
<div className="mb-3 xl:w-96">
<div className="input-group relative flex flex-wrap items-stretch w-full mb-4">
<input
{...register("article", { required: true, maxLength: 80 })}
type="search"
className="form-control relative flex-auto min-w-0 block px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 rounded transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none"
placeholder="Search"
aria-label="Search"
aria-describedby="button-addon2"
{...register("article", { required: true, maxLength: 80 })}
placeholder="ingresar articulo"
/>
<button
className="btn inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out flex items-center"
type="button"
id="button-addon2"
type="submit"
>
Expand Down
3 changes: 0 additions & 3 deletions pages/posts/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from "react";
import parse from "html-react-parser";
import moment from "moment";
export default function Posts({ post }) {
console.log(post);
return (
<>
<Head>
Expand All @@ -20,8 +19,6 @@ export default function Posts({ post }) {
<p>{post.bibliography}</p>
<p>{post.categories.name}</p>
<p>{moment(post.published).format("llll")}</p>
{/* {post.content}
{JSON.stringify(post.content)} */}
{parse(post.content)}
</>
);
Expand Down

1 comment on commit 6f4a7b0

@vercel
Copy link

@vercel vercel bot commented on 6f4a7b0 Apr 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

challenge-atomik – ./

challenge-atomik-nacho93.vercel.app
challenge-atomik.vercel.app
challenge-atomik-git-main-nacho93.vercel.app

Please sign in to comment.