yeungalan 4 years ago
parent
commit
5ec7fdad00
70 changed files with 24 additions and 10 deletions
  1. 0 0
      photo/node_modules/.cache/babel-loader/02a85142ad870af0c42262a2653561ad.json
  2. 0 0
      photo/node_modules/.cache/babel-loader/092d3136fc24cf9eec05bd6b8a29756d.json
  3. 0 0
      photo/node_modules/.cache/babel-loader/13eeb9145bbac29d27f12f52059d73a3.json
  4. 0 0
      photo/node_modules/.cache/babel-loader/15a28fb53ad8555b9c7fc15e269fbc93.json
  5. 0 0
      photo/node_modules/.cache/babel-loader/1964d52556da9d2fb1ac81c86e56809d.json
  6. 0 0
      photo/node_modules/.cache/babel-loader/1c201e413787df643e1f6a704a0c0efd.json
  7. 0 0
      photo/node_modules/.cache/babel-loader/284f0f9c5b775e6ac6e915c6f55ffabb.json
  8. 0 0
      photo/node_modules/.cache/babel-loader/2b81a5cd77f75de4378742870c8a38eb.json
  9. 0 0
      photo/node_modules/.cache/babel-loader/3887aa4ea4b5ca00b2872705d6ab0e49.json
  10. 0 0
      photo/node_modules/.cache/babel-loader/3cb6ca15570b7c0b053f9111c3ce8df7.json
  11. 0 0
      photo/node_modules/.cache/babel-loader/46d91e088adc03caef3efcaf23e8400c.json
  12. 0 0
      photo/node_modules/.cache/babel-loader/47160adc0fda8ce2656abf27f410dd6c.json
  13. 0 0
      photo/node_modules/.cache/babel-loader/5a3bd560925a05584a64aac45892ce72.json
  14. 0 0
      photo/node_modules/.cache/babel-loader/5bfb9ada7325639019370afc52d4e376.json
  15. 0 0
      photo/node_modules/.cache/babel-loader/67d3f25d023877202b0858a1691fb1f8.json
  16. 0 0
      photo/node_modules/.cache/babel-loader/69eb8b96bf6457e83daf729139d2324d.json
  17. 0 0
      photo/node_modules/.cache/babel-loader/6d4c66e7fb9f310454620a1f87602d0a.json
  18. 0 0
      photo/node_modules/.cache/babel-loader/7e1067c2a743a42ca241165b0db2fb28.json
  19. 0 0
      photo/node_modules/.cache/babel-loader/7f450e5acf83032b02d5b69702429216.json
  20. 0 0
      photo/node_modules/.cache/babel-loader/7fc979ed82ca908d1ed17026352ef11f.json
  21. 0 0
      photo/node_modules/.cache/babel-loader/8eef9038f39b36529fe4bdb15857d8ab.json
  22. 0 0
      photo/node_modules/.cache/babel-loader/94979d17ecd5d1efa2dbc0b7cff41229.json
  23. 0 0
      photo/node_modules/.cache/babel-loader/a389d8f51280a5692aa8d1a5f1200fdd.json
  24. 0 0
      photo/node_modules/.cache/babel-loader/b1df59ea9032ac900d7e26a0cea0f19c.json
  25. 0 0
      photo/node_modules/.cache/babel-loader/bd898c2d3548b322fe431c7f1f4970ae.json
  26. 0 0
      photo/node_modules/.cache/babel-loader/c15975d8095076011aa5d9b0ed8ae197.json
  27. 0 0
      photo/node_modules/.cache/babel-loader/c9e1e300dace7a966ddb7fceec8eca7d.json
  28. 0 0
      photo/node_modules/.cache/babel-loader/cc2b7f60048c84a85ab757351c3942bd.json
  29. 0 0
      photo/node_modules/.cache/babel-loader/e04ebe210b9f48f0f6ebc10bc8d2e3c9.json
  30. 0 0
      photo/node_modules/.cache/babel-loader/ef087de8f5fb04282572ecfdd5d30f97.json
  31. 0 0
      photo/node_modules/.cache/babel-loader/f5a0cd281f63bb7843d3f3f77e5c9196.json
  32. 0 0
      photo/node_modules/.cache/babel-loader/ff9684b5b1591bed26bea4ef619a659e.json
  33. BIN
      photo/node_modules/.cache/eslint-loader/067ccf9d570b0aaf591488b0f1c1aa521ada5da5.json.gz
  34. BIN
      photo/node_modules/.cache/eslint-loader/11d3f21fe530e6fd8ff7dcf634ac80464d013841.json.gz
  35. BIN
      photo/node_modules/.cache/eslint-loader/11db63bc30411db64571834e31de2a2326d45d26.json.gz
  36. BIN
      photo/node_modules/.cache/eslint-loader/1babe64fa12dc5d8ccb9e197af6c5d7383a17f96.json.gz
  37. BIN
      photo/node_modules/.cache/eslint-loader/244ba28d36e754f196b3aec16337fabe85308089.json.gz
  38. BIN
      photo/node_modules/.cache/eslint-loader/32a2a88f7ba7b3d2c29d63e3f37f2200f074fbe1.json.gz
  39. BIN
      photo/node_modules/.cache/eslint-loader/352fe41a9c717e3e21148c758da7ef80d759c19a.json.gz
  40. BIN
      photo/node_modules/.cache/eslint-loader/38d028e7b7a92208b06c53a32e95286e5b3486bf.json.gz
  41. BIN
      photo/node_modules/.cache/eslint-loader/3b4a9906e3cd8c2717fdb4de6e41a8b1dfa7f926.json.gz
  42. BIN
      photo/node_modules/.cache/eslint-loader/3dbcaf43ef332c4b3f913b789370302845a585bc.json.gz
  43. BIN
      photo/node_modules/.cache/eslint-loader/4275420e80c3b6704754e8fbddd851bf964243ac.json.gz
  44. BIN
      photo/node_modules/.cache/eslint-loader/43a69038f6021c206e1317c263012f1674a24a56.json.gz
  45. BIN
      photo/node_modules/.cache/eslint-loader/4a7683a30f37273e2386cd11d6a1417575a0386c.json.gz
  46. BIN
      photo/node_modules/.cache/eslint-loader/59cadd9f4fbc26c14aa1873a8fe29a34eaaef3b8.json.gz
  47. BIN
      photo/node_modules/.cache/eslint-loader/625e07af1617ab98a5b45451b5c23fa04d74eb3b.json.gz
  48. BIN
      photo/node_modules/.cache/eslint-loader/749ce763c39e04d0851aff03d42bd35d8e8db7e7.json.gz
  49. BIN
      photo/node_modules/.cache/eslint-loader/749e2f349c3d06ccd779ccda449d6115f68d2a50.json.gz
  50. BIN
      photo/node_modules/.cache/eslint-loader/7b92d251698fc665caa6060f62bb4739402dfab1.json.gz
  51. BIN
      photo/node_modules/.cache/eslint-loader/86814d963edd09dc5f46f948a5b177b96851103e.json.gz
  52. BIN
      photo/node_modules/.cache/eslint-loader/8c7859a3f20c139d576ad27acf0522cf6932d3d8.json.gz
  53. BIN
      photo/node_modules/.cache/eslint-loader/8ed0459a59e503e9d9d6f7d8b77aec9417120c2b.json.gz
  54. BIN
      photo/node_modules/.cache/eslint-loader/918721b497edb9178ddf7d87a82d3e79b918624a.json.gz
  55. BIN
      photo/node_modules/.cache/eslint-loader/a0a9429eab0efbd4db6d789eb289d3d291acf7c8.json.gz
  56. BIN
      photo/node_modules/.cache/eslint-loader/a8bd253a8196bd8003629b0aa998f3c6b74877dc.json.gz
  57. BIN
      photo/node_modules/.cache/eslint-loader/a8e25903fc2af09369ee2374433276022a580c1b.json.gz
  58. BIN
      photo/node_modules/.cache/eslint-loader/ac2532741fbb2688bed94654a2a3dabb5ea3023f.json.gz
  59. BIN
      photo/node_modules/.cache/eslint-loader/acc3d8409dc47273348b7fcd517bf0646862fa9f.json.gz
  60. BIN
      photo/node_modules/.cache/eslint-loader/b0440b57cdd8a67f7c942d3a85dde7a6c70f622c.json.gz
  61. BIN
      photo/node_modules/.cache/eslint-loader/b1b22c6e20ef8a79964fb3540f4feccc85f7046d.json.gz
  62. BIN
      photo/node_modules/.cache/eslint-loader/bceee1d8d86266d7bba108e2c0f9933958645fae.json.gz
  63. BIN
      photo/node_modules/.cache/eslint-loader/c6502e9720fdd7e276e27c7fadafb268a8e7e63f.json.gz
  64. BIN
      photo/node_modules/.cache/eslint-loader/c8881c52961dc940253f871b6318aa2757cd9cf5.json.gz
  65. BIN
      photo/node_modules/.cache/eslint-loader/cbb92a6de06611bde88855477b1da93039ed281b.json.gz
  66. BIN
      photo/node_modules/.cache/eslint-loader/d061416beff40a39c5e0e25ede5df9acd5d30857.json.gz
  67. BIN
      photo/node_modules/.cache/eslint-loader/deb76c8cf4f182bd560150aa4d7140c02a8c576a.json.gz
  68. BIN
      photo/node_modules/.cache/eslint-loader/e800befcdb2afbe3258b60451990f61abc54c7e3.json.gz
  69. BIN
      photo/node_modules/.cache/eslint-loader/fbf46f4802381689f8903f0725ee047bcd6d18c3.json.gz
  70. 24 10
      photo/src/ImageList.js

File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/02a85142ad870af0c42262a2653561ad.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/092d3136fc24cf9eec05bd6b8a29756d.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/13eeb9145bbac29d27f12f52059d73a3.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/15a28fb53ad8555b9c7fc15e269fbc93.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/1964d52556da9d2fb1ac81c86e56809d.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/1c201e413787df643e1f6a704a0c0efd.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/284f0f9c5b775e6ac6e915c6f55ffabb.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/2b81a5cd77f75de4378742870c8a38eb.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/3887aa4ea4b5ca00b2872705d6ab0e49.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/3cb6ca15570b7c0b053f9111c3ce8df7.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/46d91e088adc03caef3efcaf23e8400c.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/47160adc0fda8ce2656abf27f410dd6c.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/5a3bd560925a05584a64aac45892ce72.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/5bfb9ada7325639019370afc52d4e376.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/67d3f25d023877202b0858a1691fb1f8.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/69eb8b96bf6457e83daf729139d2324d.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/6d4c66e7fb9f310454620a1f87602d0a.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/7e1067c2a743a42ca241165b0db2fb28.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/7f450e5acf83032b02d5b69702429216.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/7fc979ed82ca908d1ed17026352ef11f.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/8eef9038f39b36529fe4bdb15857d8ab.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/94979d17ecd5d1efa2dbc0b7cff41229.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/a389d8f51280a5692aa8d1a5f1200fdd.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/b1df59ea9032ac900d7e26a0cea0f19c.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/bd898c2d3548b322fe431c7f1f4970ae.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/c15975d8095076011aa5d9b0ed8ae197.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/c9e1e300dace7a966ddb7fceec8eca7d.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/cc2b7f60048c84a85ab757351c3942bd.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/e04ebe210b9f48f0f6ebc10bc8d2e3c9.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/ef087de8f5fb04282572ecfdd5d30f97.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/f5a0cd281f63bb7843d3f3f77e5c9196.json


File diff suppressed because it is too large
+ 0 - 0
photo/node_modules/.cache/babel-loader/ff9684b5b1591bed26bea4ef619a659e.json


BIN
photo/node_modules/.cache/eslint-loader/067ccf9d570b0aaf591488b0f1c1aa521ada5da5.json.gz


BIN
photo/node_modules/.cache/eslint-loader/11d3f21fe530e6fd8ff7dcf634ac80464d013841.json.gz


BIN
photo/node_modules/.cache/eslint-loader/11db63bc30411db64571834e31de2a2326d45d26.json.gz


BIN
photo/node_modules/.cache/eslint-loader/1babe64fa12dc5d8ccb9e197af6c5d7383a17f96.json.gz


BIN
photo/node_modules/.cache/eslint-loader/244ba28d36e754f196b3aec16337fabe85308089.json.gz


BIN
photo/node_modules/.cache/eslint-loader/32a2a88f7ba7b3d2c29d63e3f37f2200f074fbe1.json.gz


BIN
photo/node_modules/.cache/eslint-loader/352fe41a9c717e3e21148c758da7ef80d759c19a.json.gz


BIN
photo/node_modules/.cache/eslint-loader/38d028e7b7a92208b06c53a32e95286e5b3486bf.json.gz


BIN
photo/node_modules/.cache/eslint-loader/3b4a9906e3cd8c2717fdb4de6e41a8b1dfa7f926.json.gz


BIN
photo/node_modules/.cache/eslint-loader/3dbcaf43ef332c4b3f913b789370302845a585bc.json.gz


BIN
photo/node_modules/.cache/eslint-loader/4275420e80c3b6704754e8fbddd851bf964243ac.json.gz


BIN
photo/node_modules/.cache/eslint-loader/43a69038f6021c206e1317c263012f1674a24a56.json.gz


BIN
photo/node_modules/.cache/eslint-loader/4a7683a30f37273e2386cd11d6a1417575a0386c.json.gz


BIN
photo/node_modules/.cache/eslint-loader/59cadd9f4fbc26c14aa1873a8fe29a34eaaef3b8.json.gz


BIN
photo/node_modules/.cache/eslint-loader/625e07af1617ab98a5b45451b5c23fa04d74eb3b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/749ce763c39e04d0851aff03d42bd35d8e8db7e7.json.gz


BIN
photo/node_modules/.cache/eslint-loader/749e2f349c3d06ccd779ccda449d6115f68d2a50.json.gz


BIN
photo/node_modules/.cache/eslint-loader/7b92d251698fc665caa6060f62bb4739402dfab1.json.gz


BIN
photo/node_modules/.cache/eslint-loader/86814d963edd09dc5f46f948a5b177b96851103e.json.gz


BIN
photo/node_modules/.cache/eslint-loader/8c7859a3f20c139d576ad27acf0522cf6932d3d8.json.gz


BIN
photo/node_modules/.cache/eslint-loader/8ed0459a59e503e9d9d6f7d8b77aec9417120c2b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/918721b497edb9178ddf7d87a82d3e79b918624a.json.gz


BIN
photo/node_modules/.cache/eslint-loader/a0a9429eab0efbd4db6d789eb289d3d291acf7c8.json.gz


BIN
photo/node_modules/.cache/eslint-loader/a8bd253a8196bd8003629b0aa998f3c6b74877dc.json.gz


BIN
photo/node_modules/.cache/eslint-loader/a8e25903fc2af09369ee2374433276022a580c1b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/ac2532741fbb2688bed94654a2a3dabb5ea3023f.json.gz


BIN
photo/node_modules/.cache/eslint-loader/acc3d8409dc47273348b7fcd517bf0646862fa9f.json.gz


BIN
photo/node_modules/.cache/eslint-loader/b0440b57cdd8a67f7c942d3a85dde7a6c70f622c.json.gz


BIN
photo/node_modules/.cache/eslint-loader/b1b22c6e20ef8a79964fb3540f4feccc85f7046d.json.gz


BIN
photo/node_modules/.cache/eslint-loader/bceee1d8d86266d7bba108e2c0f9933958645fae.json.gz


BIN
photo/node_modules/.cache/eslint-loader/c6502e9720fdd7e276e27c7fadafb268a8e7e63f.json.gz


BIN
photo/node_modules/.cache/eslint-loader/c8881c52961dc940253f871b6318aa2757cd9cf5.json.gz


BIN
photo/node_modules/.cache/eslint-loader/cbb92a6de06611bde88855477b1da93039ed281b.json.gz


BIN
photo/node_modules/.cache/eslint-loader/d061416beff40a39c5e0e25ede5df9acd5d30857.json.gz


BIN
photo/node_modules/.cache/eslint-loader/deb76c8cf4f182bd560150aa4d7140c02a8c576a.json.gz


BIN
photo/node_modules/.cache/eslint-loader/e800befcdb2afbe3258b60451990f61abc54c7e3.json.gz


BIN
photo/node_modules/.cache/eslint-loader/fbf46f4802381689f8903f0725ee047bcd6d18c3.json.gz


+ 24 - 10
photo/src/ImageList.js

@@ -77,15 +77,29 @@ const useStyles = makeStyles((theme) => ({
     },
 }));
 var Imagesrc = "";
+var FabL = false;
+var FabR = false;
 
 export default function TitlebarGridList() {
     const classes = useStyles();
 
     const [Imageopen, setImageOpen] = React.useState(false);
 
+    const TDLength = tileData.length;
 
-    const handleClick = (letter) => () => {
-        Imagesrc = letter;
+    const handleClick = (index) => () => {
+        Imagesrc = tileData[index].img;
+        if (index == 0) {
+            FabL = false;
+        } else {
+            FabL = true;
+        }
+        if (TDLength == index + 1) {
+            FabR = false;
+        } else {
+            FabR = true;
+        }
+        console.log(FabL + " " + FabR);
         setImageOpen(true);
     }
 
@@ -99,8 +113,8 @@ export default function TitlebarGridList() {
                 <GridListTile key="Subheader" cols={5} style={{ height: 'auto' }}>
                     <ListSubheader component="div">December</ListSubheader>
                 </GridListTile>
-                {tileData.map((tile) => (
-                    <GridListTile key={tile.img} onClick={handleClick(tile.img)}>
+                {tileData.map((tile, index) => (
+                    <GridListTile key={tile.img} onClick={handleClick(index)}>
                         <img src={tile.img} alt={tile.title} />
                     </GridListTile>
                 ))}
@@ -151,14 +165,14 @@ export default function TitlebarGridList() {
                                     </Grid>
 
                                 </Grid>
-
-
-                                <Fab color="inherit" aria-label="add" className={classes.fabL}>
+                                {FabL === true ? <Fab color="inherit" aria-label="add" className={classes.fabL}>
                                     <ArrowBackIosIcon />
-                                </Fab>
-                                <Fab color="inherit" aria-label="add" className={classes.fabR}>
+                                </Fab> : ""}
+                                {console.log(FabL + " " + FabR)}
+                                
+                                {FabR === true ? <Fab color="inherit" aria-label="add" className={classes.fabR}>
                                     <ArrowForwardIosIcon />
-                                </Fab>
+                                </Fab> : ""}
                             </Grid>
                             <Grid item xs={3}>
                                 <Typography component="h5">

Some files were not shown because too many files changed in this diff