Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielviol committed Nov 12, 2024
1 parent 511fc9b commit 631ccd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .deco/blocks/Header-Antra.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
],
"img": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/00a539b6-ff26-46dc-85c6-fbafd2afb347/cartilhas-img.png",
"imgLabel": "Alteração nome e gênero",
"url": "/resource"
"url": "/resource",
"download": "https://google.com"
},
{
"label": "Notícias",
Expand Down
2 changes: 1 addition & 1 deletion islands/header-site.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const HeaderSite = ({ logo, navigation }: Nav) => {
const openNewWindow = (link: string) => {
if (!link) return console.error("Vazio");

globalThis.open(link[0], "_blank");
globalThis.open(link, "_blank");
};

return (
Expand Down
4 changes: 2 additions & 2 deletions sections/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface Nav {
url?: string;
img?: string;
imgLabel?: string;
download?: string;
submenu?: {
label: string;
subLabel?: string;
Expand All @@ -31,8 +32,7 @@ export interface Nav {

export default function Header({
logo = {
src:
"https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/7a170a54-a9aa-4470-b04f-95197d431345/antra-logo.png",
src: "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/7a170a54-a9aa-4470-b04f-95197d431345/antra-logo.png",
alt: "Logo",
},
navigation,
Expand Down

0 comments on commit 631ccd3

Please sign in to comment.