Remove TODOs, and set favicon.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user