|
@@ -0,0 +1,288 @@
|
|
|
+// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
+
|
|
|
+exports[`Pagination matches snapshot 1`] = `
|
|
|
+<Pagination
|
|
|
+ totalPages={11}
|
|
|
+>
|
|
|
+ <nav
|
|
|
+ aria-label="pagination"
|
|
|
+ className="pagination is-small is-right"
|
|
|
+ role="navigation"
|
|
|
+ >
|
|
|
+ <button
|
|
|
+ className="pagination-previous"
|
|
|
+ disabled={true}
|
|
|
+ type="button"
|
|
|
+ >
|
|
|
+ Previous
|
|
|
+ </button>
|
|
|
+ <Link
|
|
|
+ className="pagination-next"
|
|
|
+ to="/my/test/path/23?page=2&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ className="pagination-next"
|
|
|
+ href="/my/test/path/23?page=2&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ className="pagination-next"
|
|
|
+ href="/my/test/path/23?page=2&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ Next page
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ <ul
|
|
|
+ className="pagination-list"
|
|
|
+ >
|
|
|
+ <PageControl
|
|
|
+ current={true}
|
|
|
+ page={1}
|
|
|
+ url="/my/test/path/23?page=1&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 1"
|
|
|
+ className="pagination-link is-current"
|
|
|
+ to="/my/test/path/23?page=1&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 1"
|
|
|
+ className="pagination-link is-current"
|
|
|
+ href="/my/test/path/23?page=1&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 1"
|
|
|
+ className="pagination-link is-current"
|
|
|
+ href="/my/test/path/23?page=1&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 1
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ key="page-2"
|
|
|
+ page={2}
|
|
|
+ url="/my/test/path/23?page=2&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 2"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=2&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 2"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=2&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 2"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=2&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 2
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ key="page-3"
|
|
|
+ page={3}
|
|
|
+ url="/my/test/path/23?page=3&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 3"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=3&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 3"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=3&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 3"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=3&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 3
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ key="page-4"
|
|
|
+ page={4}
|
|
|
+ url="/my/test/path/23?page=4&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 4"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=4&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 4"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=4&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 4"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=4&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 4
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ key="page-5"
|
|
|
+ page={5}
|
|
|
+ url="/my/test/path/23?page=5&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 5"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=5&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 5"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=5&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 5"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=5&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 5
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ key="page-6"
|
|
|
+ page={6}
|
|
|
+ url="/my/test/path/23?page=6&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 6"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=6&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 6"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=6&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 6"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=6&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 6
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ key="page-7"
|
|
|
+ page={7}
|
|
|
+ url="/my/test/path/23?page=7&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 7"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=7&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 7"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=7&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 7"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=7&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 7
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ <li>
|
|
|
+ <span
|
|
|
+ className="pagination-ellipsis"
|
|
|
+ >
|
|
|
+ …
|
|
|
+ </span>
|
|
|
+ </li>
|
|
|
+ <PageControl
|
|
|
+ current={false}
|
|
|
+ page={11}
|
|
|
+ url="/my/test/path/23?page=11&perPage=25"
|
|
|
+ >
|
|
|
+ <li>
|
|
|
+ <Link
|
|
|
+ aria-label="Goto page 11"
|
|
|
+ className="pagination-link"
|
|
|
+ to="/my/test/path/23?page=11&perPage=25"
|
|
|
+ >
|
|
|
+ <LinkAnchor
|
|
|
+ aria-label="Goto page 11"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=11&perPage=25"
|
|
|
+ navigate={[Function]}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ aria-label="Goto page 11"
|
|
|
+ className="pagination-link"
|
|
|
+ href="/my/test/path/23?page=11&perPage=25"
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ 11
|
|
|
+ </a>
|
|
|
+ </LinkAnchor>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </PageControl>
|
|
|
+ </ul>
|
|
|
+ </nav>
|
|
|
+</Pagination>
|
|
|
+`;
|