-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ws): Add workspace endpoints to the expanded workspace row
Signed-off-by: Yael <[email protected]>
- Loading branch information
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
workspaces/frontend/src/app/pages/Workspaces/WorkspaceEndpoints.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,33 @@ | ||
import * as React from 'react'; | ||
import { | ||
List, | ||
ListItem, | ||
Stack, | ||
StackItem, | ||
Content | ||
} from '@patternfly/react-core'; | ||
import { ExternalLinkAltIcon } from '@patternfly/react-icons'; | ||
|
||
|
||
type WorkspaceEndpointsProps = { | ||
endpoints: string[]; | ||
}; | ||
|
||
export const WorkspaceEndpoints: React.FC<WorkspaceEndpointsProps> = ({ endpoints }) => { | ||
return ( | ||
<Stack hasGutter> | ||
<StackItem> | ||
<strong>Endpoints</strong> | ||
</StackItem> | ||
<StackItem> | ||
<List isPlain> | ||
{endpoints.map((endpoint) => ( | ||
<ListItem> | ||
<Content component="a" href={endpoint} target="_blank">{endpoint}</Content> | ||
</ListItem> | ||
))} | ||
</List> | ||
</StackItem> | ||
</Stack> | ||
) | ||
}; |
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