From 4d642e312ed728ad51c454d1e2a0b7bb350fc174 Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Sun, 6 Dec 2020 23:49:13 +0100
Subject: first creator page

---
 client/src/admin/hocs/View.jsx | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 client/src/admin/hocs/View.jsx

(limited to 'client/src/admin/hocs/View.jsx')

diff --git a/client/src/admin/hocs/View.jsx b/client/src/admin/hocs/View.jsx
new file mode 100644
index 0000000..3c654c2
--- /dev/null
+++ b/client/src/admin/hocs/View.jsx
@@ -0,0 +1,9 @@
+import React, { useContext } from 'react';
+import Context from '../context';
+
+const View = (view) => {
+  const { setView } = useContext(Context);
+  return () => setView(view);
+};
+
+export default View;
-- 
cgit v1.2.3

