diff --git a/.eslintrc.yml b/.eslintrc.yml
index 5d35cab..79d19ce 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -26,7 +26,7 @@ rules:
- double
semi:
- error
- - never
+ - always
react/jsx-pascal-case: error
react/jsx-closing-bracket-location: error
react/jsx-closing-tag-location: error
diff --git a/index.html b/index.html
index 0369de8..07f2662 100755
--- a/index.html
+++ b/index.html
@@ -9,7 +9,6 @@
-
+
+
+
+
404!}>
@@ -23,7 +26,7 @@ function App() {
- )
+ );
}
-export default App
+export default App;
diff --git a/src/BarraSuperior.tsx b/src/BarraSuperior.tsx
index 1bd0ec4..1138acc 100755
--- a/src/BarraSuperior.tsx
+++ b/src/BarraSuperior.tsx
@@ -1,10 +1,10 @@
-import { estilosGlobales } from "./Estilos"
-import { StyleSheet, css } from "aphrodite"
-import { numWallpaper, setNumWallpaper } from "./Store"
-import { TamanoLetra } from "./BarraSuperior/TamanoLetra"
-import { RouterLink } from "./Router"
+import { estilosGlobales } from "./Estilos";
+import { StyleSheet, css } from "aphrodite";
+import { numWallpaper, setNumWallpaper } from "./Store";
+import { TamanoLetra } from "./BarraSuperior/TamanoLetra";
+import { RouterLink } from "./Router";
-const ultimoIndiceWallpaper = 2
+const ultimoIndiceWallpaper = 1;
const e = StyleSheet.create({
contCambiador: {
@@ -30,29 +30,29 @@ const e = StyleSheet.create({
paddingLeft: "0.5rem",
marginRight: "0.25rem",
},
-})
+});
const retrocederWallpaper = () => {
- const num = numWallpaper()
+ const num = numWallpaper();
if (num > 0) {
- setNumWallpaper(num - 1)
- localStorage.setItem("num-img", (num - 1).toString())
+ setNumWallpaper(num - 1);
+ localStorage.setItem("num-img", (num - 1).toString());
} else {
- setNumWallpaper(ultimoIndiceWallpaper)
- localStorage.setItem("num-img", (ultimoIndiceWallpaper).toString())
+ setNumWallpaper(ultimoIndiceWallpaper);
+ localStorage.setItem("num-img", (ultimoIndiceWallpaper).toString());
}
-}
+};
const avanzarWallpaper = () => {
- const num = numWallpaper()
+ const num = numWallpaper();
if (num < ultimoIndiceWallpaper) {
- setNumWallpaper(num + 1)
- localStorage.setItem("num-img", (num + 1).toString())
+ setNumWallpaper(num + 1);
+ localStorage.setItem("num-img", (num + 1).toString());
} else {
- setNumWallpaper(0)
- localStorage.setItem("num-img", (0).toString())
+ setNumWallpaper(0);
+ localStorage.setItem("num-img", (0).toString());
}
-}
+};
function CambiadorImg() {
return (
@@ -71,14 +71,14 @@ function CambiadorImg() {
/>
- )
+ );
}
const estilos = StyleSheet.create({
tituloPrincipal: {
fontWeight: "bold",
},
-})
+});
export function BarraSuperior() {
return (
@@ -107,5 +107,5 @@ export function BarraSuperior() {