diff --git a/README.md b/README.md
index 22d15bb..dc5fa6e 100644
--- a/README.md
+++ b/README.md
@@ -97,13 +97,12 @@ Children are rendered as content.
- `rightContent?: node`, React element that is rendered on the right side of the header
- `isHeaderFixed?: boolean`, Is header fixed?, default `true`
- `hasHeader?: boolean`, Is header included, default `true`
-- `hasCookieInfo?: boolean`, Is there a cookieinfo in the project, default: `false`
```javascript
import { Base } from "backoffice";
const base = () => (
-
+
Content
);
@@ -152,29 +151,6 @@ const confirm = ({ isOpen, onConfirm }) => (
);
```
-### CookieInfo
-
-Asks the user if they want to obey the fact that you are using cookies. Sets a cookie with the name `cookie_concent` and the value of `true` if the user accepts. Otherwise set to `false`.
-If you use CookieInfo please make sure to set the attribute `hasCookieInfo` to `Base`.
-
-Children are used as content.
-
-- `buttonText: string`, text to display on the button
-- Internal: `isOpen: boolean`, state of the cookieInfo, handled by `Base`, default `false`
-- Internal: `onAccept: function`, when accepted, provided by `Base`
-
-```javascript
-import { Base, CookieInfo } from "backoffice";
-
-const page = (props) => (
-
-
- This is the cookie info
-
-
-);
-```
-
### Dashboard
Dashboard-like overview page
@@ -322,7 +298,6 @@ Header element, used by `Base` component.
- `isOpen?: boolean`, is sidebar opened?, default `false`
- `title: string`, title to show next to menu icon
- `isFixed: boolean`, should the header be fixed when scrolling?
-- `isCookieInfoOpen: boolean`, is the cookie info bar visible?
- `onDrawerOpen: function`, called when menu is toggled
- `onClick: function`, click on title
- `children?: Elements`, content which is shown on the right hand side of the header
@@ -337,7 +312,6 @@ const header = ({ onDrawerOpen, onClick }) => (
onClick={onClick}
isOpen={false}
isFixed
- isCookieInfoOpen={true}
>
Beta
diff --git a/__tests__/index.test.js b/__tests__/index.test.js
index d807cb3..1d159d7 100644
--- a/__tests__/index.test.js
+++ b/__tests__/index.test.js
@@ -1,19 +1,18 @@
-import * as Backoffice from '..'
+import * as Backoffice from "..";
-it('has all components', () => {
- expect(typeof Backoffice.AddButton).toBe('function')
- expect(typeof Backoffice.AppContainer).toBe('function')
- expect(typeof Backoffice.BackButton).toBe('function')
- expect(typeof Backoffice.Base).toBe('function')
- expect(typeof Backoffice.Confirm).toBe('function')
- expect(typeof Backoffice.CookieInfo).toBe('function')
- expect(typeof Backoffice.Drawer).toBe('function')
- expect(typeof Backoffice.Snackbar).toBe('function')
- expect(typeof Backoffice.Form).toBe('function')
- expect(typeof Backoffice.Header).toBe('function')
- expect(typeof Backoffice.Dashboard).toBe('function')
- expect(typeof Backoffice.Listing).toBe('function')
- expect(typeof Backoffice.Menu).toBe('function')
- expect(typeof Backoffice.NoMatch).toBe('function')
- expect(typeof Backoffice.Tabs).toBe('function')
-})
+it("has all components", () => {
+ expect(typeof Backoffice.AddButton).toBe("function");
+ expect(typeof Backoffice.AppContainer).toBe("function");
+ expect(typeof Backoffice.BackButton).toBe("function");
+ expect(typeof Backoffice.Base).toBe("function");
+ expect(typeof Backoffice.Confirm).toBe("function");
+ expect(typeof Backoffice.Drawer).toBe("function");
+ expect(typeof Backoffice.Snackbar).toBe("function");
+ expect(typeof Backoffice.Form).toBe("function");
+ expect(typeof Backoffice.Header).toBe("function");
+ expect(typeof Backoffice.Dashboard).toBe("function");
+ expect(typeof Backoffice.Listing).toBe("function");
+ expect(typeof Backoffice.Menu).toBe("function");
+ expect(typeof Backoffice.NoMatch).toBe("function");
+ expect(typeof Backoffice.Tabs).toBe("function");
+});
diff --git a/src/Base/Base.test.tsx b/src/Base/Base.test.tsx
index ab0c461..f80e114 100644
--- a/src/Base/Base.test.tsx
+++ b/src/Base/Base.test.tsx
@@ -9,7 +9,6 @@ import Base from ".";
import menuData from "../tests/data/menu";
import Header from "../Header";
import Drawer from "../Drawer";
-import CookieInfo from "../CookieInfo";
Enzyme.configure({ adapter: new Adapter() });
@@ -17,7 +16,7 @@ describe("Base", () => {
it("renders correctly", () => {
const tree = shallow(
-
+