diff --git a/packages/grafnode-components/src/components/Sidebar/CreateCollection/index.js b/packages/grafnode-components/src/components/Sidebar/CreateCollection/index.js new file mode 100644 index 000000000..9f9dad95e --- /dev/null +++ b/packages/grafnode-components/src/components/Sidebar/CreateCollection/index.js @@ -0,0 +1,24 @@ +import React from 'react'; +import Modal from '../../Modal'; + +const CreateCollection = ({handleConfirm, handleCancel, actions, dispatch}) => { + return ( + +
+ + +
+
+ ); +}; + +export default CreateCollection; diff --git a/packages/grafnode-components/src/components/Sidebar/index.js b/packages/grafnode-components/src/components/Sidebar/index.js index d97f4fdc3..78b3b2d7c 100644 --- a/packages/grafnode-components/src/components/Sidebar/index.js +++ b/packages/grafnode-components/src/components/Sidebar/index.js @@ -1,6 +1,6 @@ import React, { useState, forwardRef, useRef } from 'react'; import Collections from './Collections'; -import Modal from '../Modal'; +import CreateCollection from './CreateCollection'; import Navbar from '../Navbar'; import Dropdown from '../Dropdown'; import { IconBox, IconSearch, IconDots } from '@tabler/icons'; @@ -29,16 +29,14 @@ const Sidebar = ({collections, actions, dispatch, activeRequestTabId}) => { return ( - {modalOpen && ( - - Hello - - )} + actions={actions} + dispatch={dispatch} + /> + ) : null} diff --git a/packages/grafnode-run/src/globalStyles.js b/packages/grafnode-run/src/globalStyles.js index cf9c9d07d..eb800ddf1 100644 --- a/packages/grafnode-run/src/globalStyles.js +++ b/packages/grafnode-run/src/globalStyles.js @@ -5,6 +5,27 @@ const GlobalStyle = createGlobalStyle` background-color: #f6f8fa; } + .grafnode-form { + .textbox { + line-height: 1.42857143; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + padding: 0.45rem; + box-shadow: none; + border-radius: 0px; + outline: none; + box-shadow: none; + transition: border-color ease-in-out .1s; + border-radius: 3px; + + &:focus { + border: solid 1px #8b8b8b !important; + outline: none !important; + } + } + } + @keyframes fade-in { from { opacity: 0;