added dynamic pagination in reviews-section

This commit is contained in:
Alibek committed 2024-03-01 14:14:32 +06:00
1 parent 0a7513dd89
commit 65a700dad7
5 files changed
+88 -9

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
export interface IList {
count: number | null;
count: number;
previous: string | null;
next: string | null;
}
+11 -2
View File
@@ -1,7 +1,16 @@
import "./Loader.scss";
const Loader = () => {
return <span className="loader"></span>;
interface ILoader {
color?: string;
}
const Loader: React.FC<ILoader> = ({ color }: ILoader) => {
return (
<span
className="loader"
style={{ borderTop: `3px solid ${color}` }}
></span>
);
};
export default Loader;