From 8c2f445b5613c15189915ee63c928dcca6b211b9 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 21 Dec 2020 16:57:29 -0600 Subject: [PATCH] refactor: login component --- app/src/react/index.jsx | 8 +++----- packages/user/.neutrinorc.js | 4 +++- packages/user/src/client/components/login.jsx | 10 ++++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 packages/user/src/client/components/login.jsx diff --git a/app/src/react/index.jsx b/app/src/react/index.jsx index 489c1e0..d2928a4 100644 --- a/app/src/react/index.jsx +++ b/app/src/react/index.jsx @@ -1,15 +1,13 @@ import React from 'react'; import {hot} from 'react-hot-loader'; +import Login from '@latus/user/client/components/login'; + const App = () => (

Latus react app

Yay, you maaaaade it! :)

-
- - - -
+
); diff --git a/packages/user/.neutrinorc.js b/packages/user/.neutrinorc.js index 9829d24..616fe01 100644 --- a/packages/user/.neutrinorc.js +++ b/packages/user/.neutrinorc.js @@ -1,6 +1,8 @@ const splitConfig = require('../../config/split-config'); const pkg = require('./package.json'); -const clientMains = []; +const clientMains = [ + 'client/components/login', +]; module.exports = splitConfig(pkg, clientMains); diff --git a/packages/user/src/client/components/login.jsx b/packages/user/src/client/components/login.jsx new file mode 100644 index 0000000..04ae15a --- /dev/null +++ b/packages/user/src/client/components/login.jsx @@ -0,0 +1,10 @@ +// eslint-disable-next-line no-unused-vars +import {React} from '@latus/react/client'; + +export default () => ( +
+ + + +
+);