Skip to content

Commit

Permalink
fix(sno-upgrade-nextjs): change link
Browse files Browse the repository at this point in the history
change link
  • Loading branch information
snomiao committed Aug 23, 2024
1 parent bb704bf commit 2d79466
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 53 deletions.
16 changes: 10 additions & 6 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ export const Header = () => {
</h1>

<div className="flex justify-center gap-4">
<Link href="/waterfall">
<a className="text-blue-500 hover:text-blue-700 underline hover:no-underline">
<Link
href="/waterfall"
className="text-blue-500 hover:text-blue-700 underline hover:no-underline">

Waterfall
</a>

</Link>
<Link href="/">
<a className="text-blue-500 hover:text-blue-700 underline hover:no-underline">
<Link
href="/"
className="text-blue-500 hover:text-blue-700 underline hover:no-underline">

All Results
</a>

</Link>
</div>
</div>
Expand Down
63 changes: 28 additions & 35 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,15 @@ function GitCommitsList() {
>
<Table.Cell>
<div className="flex text-xl items-center gap-2 mb-4">
<Link passHref href={`/workflow/${result.id}`}>
<a
className="text-blue-500 hover:text-blue-700 underline hover:no-underline text-xl "
target="_blank"
rel="noopener noreferrer"
>
{result.workflow_name}
</a>
<Link
passHref
href={`/workflow/${result.id}`}
className="text-blue-500 hover:text-blue-700 underline hover:no-underline text-xl "
target="_blank"
rel="noopener noreferrer">

{result.workflow_name}

</Link>
<Button
size="xs"
Expand All @@ -201,32 +202,27 @@ function GitCommitsList() {
<Link
passHref
href={`https://github.com/${result.git_repo}/actions/runs/${result.action_run_id}`}
>
<a
className="text-blue-500 hover:text-blue-700 underline hover:no-underline text-xl "
target="_blank"
rel="noopener noreferrer"
>
className="text-blue-500 hover:text-blue-700 underline hover:no-underline text-xl "
target="_blank"
rel="noopener noreferrer">

Github Action
</a>

</Link>
</Table.Cell>
<Table.Cell>
<div className="flex items-center space-x-2">
<Link
className="text-xs"
href={`https://github.com/${result.git_repo}/commit/${result.commit_hash}`}
>
<a
className="text-blue-500 hover:text-blue-700 underline hover:no-underline text-xl "
target="_blank"
rel="noopener noreferrer"
>
{result.commit_hash?.slice(
0,
7
)}
</a>
target="_blank"
rel="noopener noreferrer">

{result.commit_hash?.slice(
0,
7
)}

</Link>
<Button
size="xs"
Expand Down Expand Up @@ -254,14 +250,11 @@ function GitCommitsList() {
<Link
className="text-xs"
href={`https://github.com/${result.git_repo}/commit/${result.commit_hash}`}
>
<a
className="text-blue-500 hover:text-blue-700 underline hover:no-underline text-xl "
target="_blank"
rel="noopener noreferrer"
>
{result.commit_message}
</a>
target="_blank"
rel="noopener noreferrer">

{result.commit_message}

</Link>
</div>
</Table.Cell>
Expand Down Expand Up @@ -312,7 +305,7 @@ function GitCommitsList() {
)
}
</div >
)
);
}

export function calculateTimeDifference(startTime: number, endTime: number): string {
Expand Down
21 changes: 9 additions & 12 deletions pages/waterfall/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,14 @@ function GitCommitsList() {
<Link
className="text-xs"
href={`https://github.com/${gitRepo}/commit/${commitHash}`}
>
<a
className="text-blue-500 hover:text-blue-700 underline hover:no-underline"
target="_blank"
rel="noopener noreferrer"
>
{commitHash?.slice(
0,
7
)}
</a>
target="_blank"
rel="noopener noreferrer">

{commitHash?.slice(
0,
7
)}

</Link>
<Button
size="xs"
Expand Down Expand Up @@ -238,7 +235,7 @@ function GitCommitsList() {
</>
)}
</div>
)
);
}

export default GitCommitsList

0 comments on commit 2d79466

Please sign in to comment.