-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow porter operators to edit non-app node groups from infra tab (#4398
- Loading branch information
Feroze Mohideen
authored
Mar 12, 2024
1 parent
664ae62
commit 6b3c4cd
Showing
4 changed files
with
196 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
dashboard/src/components/porter/PorterOperatorComponent.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,34 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
import Text from "components/porter/Text"; | ||
|
||
import info from "assets/information-circle-contained.svg"; | ||
|
||
import Container from "./Container"; | ||
import Icon from "./Icon"; | ||
import Spacer from "./Spacer"; | ||
|
||
type Props = { | ||
children: JSX.Element; | ||
}; | ||
const PorterOperatorComponent: React.FC<Props> = ({ children }) => { | ||
return ( | ||
<StyledContainer> | ||
<Container row> | ||
<Icon src={info} height={"14px"} /> | ||
<Spacer inline x={0.5} /> | ||
<Text>This is only visible to Porter operators</Text> | ||
</Container> | ||
<div style={{ marginTop: "10px" }}>{children}</div> | ||
</StyledContainer> | ||
); | ||
}; | ||
|
||
export default PorterOperatorComponent; | ||
|
||
const StyledContainer = styled.div` | ||
background-color: rgba(128, 128, 128, 0.2); | ||
padding: 20px; | ||
border-radius: 5px; | ||
`; |
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