From 71d3ff4246d7b98858d108a118e24d1f07ef4116 Mon Sep 17 00:00:00 2001
From: Nozomi Ichihara <31800566+nozomione@users.noreply.github.com>
Date: Thu, 14 Sep 2023 11:55:27 -0400
Subject: [PATCH] (edit) rename ContributePageCard to WarningCard and define
props and add the dropshadow
---
client/src/components/ContributePageCard.js | 47 ---------------------
client/src/components/WarningCard.js | 31 ++++++++++++++
2 files changed, 31 insertions(+), 47 deletions(-)
delete mode 100644 client/src/components/ContributePageCard.js
create mode 100644 client/src/components/WarningCard.js
diff --git a/client/src/components/ContributePageCard.js b/client/src/components/ContributePageCard.js
deleted file mode 100644
index 518b1f4b..00000000
--- a/client/src/components/ContributePageCard.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react'
-import { Box, Heading, Paragraph, Text } from 'grommet'
-import { config } from 'config'
-import { Button } from 'components/Button'
-import { CardBandLarge } from 'components/Band'
-import { WarningText } from 'components/WarningText'
-
-export const ContributePageCard = () => {
- return (
-
-
-
- We are NOT currently accepting contributions
-
- }
- />
-
-
-
-
- Interested in contributing? Sign up to be notified.
-
-
- If you have an existing single-cell dataset you are interested in
- making available via the portal, please sign up to be notified about
- future opportunities. In the future, there will be a process for
- determining if your data meets the necessary requirements to be
- shared on the portal.
-
-
-
-
-
- )
-}
-
-export default ContributePageCard
diff --git a/client/src/components/WarningCard.js b/client/src/components/WarningCard.js
new file mode 100644
index 00000000..040a565a
--- /dev/null
+++ b/client/src/components/WarningCard.js
@@ -0,0 +1,31 @@
+import React from 'react'
+import { Box, Text } from 'grommet'
+import { CardBandLarge } from 'components/Band'
+import { WarningText } from 'components/WarningText'
+
+export const WarningCard = ({ label, children }) => {
+ return (
+
+
+
+ {label}
+
+ }
+ />
+
+ {children}
+
+ )
+}
+
+export default WarningCard