{content.map((line) => (
@@ -36,11 +47,19 @@ export default function Edit({ datetime, by, content }){
);
}
-Edit.propTypes = {
+TimelineActionCard.propTypes = {
+ "type": PropTypes.oneOf([
+ "edit",
+ "reply_to_user"
+ ]),
/** ISO 8601 formatted time string. */
"datetime": PropTypes.string.isRequired,
/** The name of the person who added the edit. */
"by": PropTypes.string.isRequired,
/** An array of strings containing the content of the edit. */
"content": PropTypes.array.isRequired
-}
\ No newline at end of file
+};
+
+TimelineActionCard.defaultProps = {
+ "type": "edit",
+};
\ No newline at end of file
diff --git a/src/components/TimelineActionCard/TimelineActionCard.md b/src/components/TimelineActionCard/TimelineActionCard.md
new file mode 100644
index 0000000..7c8a8ee
--- /dev/null
+++ b/src/components/TimelineActionCard/TimelineActionCard.md
@@ -0,0 +1,60 @@
+Renders a card like view for an action with free form text content like an Edit or Reply.
+
+```jsx
+import { ThemeProvider } from "@material-ui/core/styles";
+import webqueue2Theme from "../../theme";
+import TimelineActionCard from "./TimelineActionCard";
+
+const theme = webqueue2Theme(false);
+
+
+
+
+```
+
+```jsx static
+
+
+
+```
\ No newline at end of file
diff --git a/src/components/TimelineActionCard/index.js b/src/components/TimelineActionCard/index.js
new file mode 100644
index 0000000..48454f2
--- /dev/null
+++ b/src/components/TimelineActionCard/index.js
@@ -0,0 +1 @@
+export { default } from "./TimelineActionCard";
\ No newline at end of file