Remove TODOs, and set favicon.

This commit is contained in:
2020-02-26 13:51:30 -08:00
parent 49695dd393
commit 62ae230f70
3 changed files with 4 additions and 18 deletions

View File

@@ -67,7 +67,6 @@ type AlbumProps = {
};
type AlbumState = {
error: any;
// TODO(wathiede): define a MediaItem type.
mediaItems: Array<MediaItem> | null;
idx: number;
showUI: boolean;
@@ -111,7 +110,6 @@ class Album extends React.Component<AlbumProps, AlbumState> {
render() {
// TODO(wathiede): fade transition.
// TODO(wathiede): pair-up portrait orientation images.
// TODO(wathiede): fetch an image that maintains the originals aspect ratio
let w = window.innerWidth * window.devicePixelRatio;
let h = window.innerHeight * window.devicePixelRatio;
let ratio = w/h;
@@ -194,7 +192,6 @@ class Album extends React.Component<AlbumProps, AlbumState> {
};
let ui;
if (showUI) {
// TODO(wathiede): set image as background of the div in the style.
ui = <div id="ui">
<div
style={leftPrefetchStyle}