Releases: epignosis/gnosis
Releases · epignosis/gnosis
v2.1.2
v2.1.1
v2.1.0
v2.0.0
2.0.0 (2022-01-21)
💥 Breaking changes
There 2 breaking changes:
- remove
responsiveView
from Pagination component
// before v2.0.0
<Pagination
current={1}
totalPages={3}
onChange={() => {}}
responsiveView={true}
/>
// after v2.0.0
<Pagination
current={1}
totalPages={3}
onChange={() => {}}
/>
- remove
react-toastify
wrapper component and styles. We strongly recommend to upgrade to the latestreact-toastify
and just move your styles there.
// before v2.0.0
import { Toaster, toast } from "@epignosis_llc/gnosis";
// after v2.0.0
// Create your custom Toaster component and theme it (example code below):
import React from "react";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import "./custom/styles.css";
const Toaster = () => (
<ToastContainer
position="top-right"
icon={false}
/>
);
// fix the imports
import { toast, ToastOptions } from "react-toastify";
import Toaster from "./path/to/Toaster";