Skip to content

Instantly share code, notes, and snippets.

🥒
cucumber

Ali Torbati ali-sigsci

🥒
cucumber
Block or report user

Report or block ali-sigsci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View shared-pages-poc.diff
diff --git a/dashboard/ui/v1/src/pages/Rules/CorpRule.jsx b/dashboard/ui/v1/src/pages/Rules/CorpRule.jsx
new file mode 100644
index 0000000000..ee9dbcabb1
--- /dev/null
+++ b/dashboard/ui/v1/src/pages/Rules/CorpRule.jsx
@@ -0,0 +1,29 @@
+/* @flow */
+
+import * as React from 'react'
+import {
View signalsAsOptions.jsx
signalsAsOptions = (signals: SignalObject[], groupBy: GroupBy = 'type') => {
const sortedSignals = {}
signals.forEach((signal) => {
if (!sortedSignals[signal[groupBy]]) sortedSignals[signal[groupBy]] = []
sortedSignals[signal[groupBy]].push(signal)
})
const optGroups = Object.keys(sortedSignals).map((groupName) => {
const groupLabel = `${groupName.replace(groupName[0], groupName[0].toUpperCase())} signals`
return (
You can’t perform that action at this time.