-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Rotue section in Knative revision sidebar
- Loading branch information
karthik
committed
Sep 30, 2020
1 parent
ce1e950
commit d54f1c3
Showing
9 changed files
with
272 additions
and
53 deletions.
There are no files selected for viewing
8 changes: 1 addition & 7 deletions
8
frontend/packages/knative-plugin/src/components/overview/KSRoutes.tsx
This file contains 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
This file contains 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
This file contains 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
17 changes: 9 additions & 8 deletions
17
frontend/packages/knative-plugin/src/components/overview/RoutesOverviewListItem.tsx
This file contains 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
20 changes: 20 additions & 0 deletions
20
frontend/packages/knative-plugin/src/components/overview/RoutesUrlLink.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { ExternalLink } from '@console/internal/components/utils'; | ||
|
||
export type RoutesUrlLinkProps = { | ||
urls: string[]; | ||
title?: string; | ||
}; | ||
|
||
const RoutesUrlLink: React.FC<RoutesUrlLinkProps> = ({ urls = [], title }) => | ||
urls.length > 0 && ( | ||
<> | ||
{title && <span className="text-muted">{title}: </span>} | ||
{urls.length > 0 && | ||
urls.map((url) => ( | ||
<ExternalLink href={url} additionalClassName="co-external-link--block" text={url} /> | ||
))} | ||
</> | ||
); | ||
|
||
export default RoutesUrlLink; |
This file contains 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
This file contains 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
Oops, something went wrong.