mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:39:45 +00:00
фикс билда
This commit is contained in:
1 parent
968b0b8c82
commit
af763e5865
17 files changed
+224
-134
No files matched your search
@@ -1,13 +1,13 @@
|
||||
import { useContext } from "react";
|
||||
|
||||
import { SliderContext } from "../Slider";
|
||||
import Dot from "./Dots";
|
||||
import Dot from "./Dot"; // Fixed import - was incorrectly importing from "./Dots"
|
||||
import { ReactElement } from "react";
|
||||
|
||||
function Dots() {
|
||||
function Dots(): ReactElement {
|
||||
const { slidesCount } = useContext(SliderContext);
|
||||
|
||||
const renderDots = () => {
|
||||
const dots = [];
|
||||
const renderDots = (): ReactElement[] => {
|
||||
const dots: ReactElement[] = [];
|
||||
for (let i = 0; i < slidesCount; i++) {
|
||||
dots.push(<Dot key={`dot-${i}`} number={i} />);
|
||||
}
|
||||
@@ -18,4 +18,4 @@ function Dots() {
|
||||
return <div className="dots">{renderDots()}</div>;
|
||||
}
|
||||
|
||||
export default Dots;
|
||||
export default Dots;
|
||||
Reference in new issue
Block a user