Skip to content

Commit c34757b

Browse files
committed
refactor: File names
1 parent c166fc2 commit c34757b

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { createRef, useEffect, useState } from "react";
22
import Item from "./Item.jsx";
33
import style from "./style";
44

5-
export default ({ value = 0, setValue, children, navigation }) => {
5+
const Carousel = ({ value = 0, setValue, children, navigation }) => {
66
const [viewValue, setViewValue] = useState(0);
77

88
const firstItemRef = createRef();
@@ -66,3 +66,5 @@ export default ({ value = 0, setValue, children, navigation }) => {
6666
</div>
6767
);
6868
};
69+
70+
export default Carousel;

src/Item.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { createRef, useState } from "react";
22

3-
export default ({ children, increaseValue, decreaseValue, setViewValue }) => {
3+
const Item = ({ children, increaseValue, decreaseValue, setViewValue }) => {
44
const [x, setX] = useState(0);
55
const [viewX, setViewX] = useState(0);
66

@@ -61,3 +61,5 @@ export default ({ children, increaseValue, decreaseValue, setViewValue }) => {
6161
</div>
6262
);
6363
};
64+
65+
export default Item;

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import ReactCarousel from "./ReactCarousel.jsx";
1+
import ReactCarousel from "./Carousel.jsx";
22

33
export default ReactCarousel;

0 commit comments

Comments
 (0)