-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show delete integration btn only if allow_delete is truthy (#3377)
# What this PR does Show delete integration btn only if `allow_delete` is `true` for it ## Which issue(s) this PR fixes grafana/oncall-private#2302 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
- Loading branch information
Showing
4 changed files
with
44 additions
and
208 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
grafana-plugin/src/components/RenderConditionally/RenderConditionally.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,11 @@ | ||
import React, { FC, ReactNode } from 'react'; | ||
|
||
interface RenderConditionallyProps { | ||
shouldRender?: boolean; | ||
children: ReactNode; | ||
} | ||
|
||
const RenderConditionally: FC<RenderConditionallyProps> = ({ shouldRender, children }) => | ||
shouldRender ? <>{children}</> : null; | ||
|
||
export default RenderConditionally; |
58 changes: 0 additions & 58 deletions
58
...ntainers/CreateAlertReceiveChannelContainer/CreateAlertReceiveChannelContainer.module.css
This file was deleted.
Oops, something went wrong.
118 changes: 0 additions & 118 deletions
118
.../src/containers/CreateAlertReceiveChannelContainer/CreateAlertReceiveChannelContainer.tsx
This file was deleted.
Oops, something went wrong.
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