layout
This commit is contained in:
@@ -21,3 +21,5 @@
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
*.mp4
|
||||
+2
-2
@@ -14,7 +14,7 @@ export const Galleria = () => {
|
||||
const { evento } = useParams();
|
||||
const [messaggi, cambiaMessaggi] = useState([]);
|
||||
|
||||
const [indiceCorrente, cambiaindiceCorrente] = useState(1);
|
||||
const [indiceCorrente, cambiaindiceCorrente] = useState(0);
|
||||
|
||||
useEffect(() => {
|
||||
var messagesRef = firebase.database().ref(`/messaggi/${evento}`);
|
||||
@@ -85,7 +85,7 @@ export const Galleria = () => {
|
||||
<ArrowBackIcon style={{ fontSize: "3rem" }} />
|
||||
</IconButton>
|
||||
)}
|
||||
{indiceCorrente < messaggi.length && (
|
||||
{indiceCorrente < messaggi.length - 1 && (
|
||||
<IconButton
|
||||
onClick={() => cambiaindiceCorrente(indiceCorrente + 1)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user