feat(MoveToShelf): resolve threads
This commit is contained in:
parent
22ab06f395
commit
118ca1ed82
2 changed files with 11 additions and 7 deletions
|
@ -150,17 +150,18 @@ body {
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tbody > tr > td {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
|
||||||
|
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
|
||||||
|
"Helvetica Neue", sans-serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
.table > :not(caption) > * > * {
|
.table > :not(caption) > * > * {
|
||||||
background-color: #5e6268 !important;
|
background-color: #5e6268 !important;
|
||||||
color: #f2f2e8 !important;
|
color: #f2f2e8 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table > thead {
|
||||||
tbody > td > div {
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
|
|
||||||
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
|
|
||||||
"Helvetica Neue", sans-serif !important;
|
|
||||||
}
|
|
||||||
letter-spacing: 0.25em;
|
letter-spacing: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import React, { useCallback } from "react";
|
import React, { useCallback } from "react";
|
||||||
import { Pagination as BP } from "react-bootstrap";
|
import { Pagination as BP } from "react-bootstrap";
|
||||||
import { AiOutlineLeft, AiOutlineRight } from "react-icons/ai";
|
import { AiOutlineLeft, AiOutlineRight } from "react-icons/ai";
|
||||||
|
import { useAuth } from "../../../shared/utils/useAuthentication";
|
||||||
|
|
||||||
export const Pagination = ({
|
export const Pagination = ({
|
||||||
currentPage,
|
currentPage,
|
||||||
|
@ -11,6 +12,8 @@ export const Pagination = ({
|
||||||
getPageCount: () => number;
|
getPageCount: () => number;
|
||||||
setPageIndex: (index: number) => void;
|
setPageIndex: (index: number) => void;
|
||||||
}): React.JSX.Element => {
|
}): React.JSX.Element => {
|
||||||
|
const { authenticated } = useAuth();
|
||||||
|
|
||||||
const getPage = useCallback(
|
const getPage = useCallback(
|
||||||
(n: number) => (
|
(n: number) => (
|
||||||
<BP.Item
|
<BP.Item
|
||||||
|
@ -29,7 +32,7 @@ export const Pagination = ({
|
||||||
className='d-flex'
|
className='d-flex'
|
||||||
style={{
|
style={{
|
||||||
marginLeft: "auto",
|
marginLeft: "auto",
|
||||||
marginRight: "10px",
|
marginRight: authenticated ? "10px" : "auto",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BP.Item
|
<BP.Item
|
||||||
|
|
Loading…
Reference in a new issue