This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const dateFormat = (date) => { | |
const newDate = new Date(date.split("T")[0].split("-")); | |
const options = { | |
year: "numeric", | |
month: "long", | |
day: "numeric", | |
}; | |
return newDate.toLocaleDateString("es-ES", options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cloudinary from "cloudinary"; | |
cloudinary.v2.config({ | |
cloud_name: [CLOUDINARY_NAME], | |
api_key: [CLOUDINARY_API_KEY], | |
api_secret: [CLOUDINARY_API_SECRET], | |
}); | |
// Subir archivo a cloudinary | |
export const uploadAvatar = async (file) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-webkit-scrollbar { | |
width: 3px; | |
} | |
::-webkit-scrollbar-thumb { | |
background: "#000"; | |
border-radius: 10px; | |
} |