Fixed page links

This commit is contained in:
Patrick Alvin Alcala 2025-09-25 09:23:00 +08:00
parent 5c7d2ec49f
commit 7c7afa9171
2 changed files with 3 additions and 3 deletions

View file

@ -33,14 +33,14 @@ export default (props: Props) => {
<Show when={props.to}>
<Switch>
<Match when={props.design}>
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : '_self'}>
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : ''}>
<button class={props.design} style={borderRadius}>
{props.label || 'Click Me!'}
</button>
</A>
</Match>
<Match when={!props.design}>
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : '_self'}>
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : ''}>
<button class="button" style={borderRadius}>
{props.label || 'Click Me!'}
</button>

View file

@ -10,7 +10,7 @@ interface Props {
export default (props: Props) => {
return (
<>
<A href={props.to} aria-label={`Go to ${props.to}`} target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
<A href={props.to} aria-label={`Go to ${props.to}`} target={props.newtab ? '_blank' : ''}>
{props.children}
</A>
</>