renderer: showing progress on slow runs

This commit is contained in:
muerwre 2018-12-10 12:22:38 +07:00
parent 25ae7f8282
commit 66f79db43d
9 changed files with 87 additions and 9 deletions

View file

@ -0,0 +1,21 @@
import React from 'react';
type Props = {
renderer: {
info: String,
progress: Number,
}
}
export const ShotPrefetchDialog = ({ renderer: { info, progress }}: Props) => (
<div className="control-dialog control-dialog-small">
<div className="helper helper-prefetch">
<div className="dialog-prefetch-stage">{info}</div>
<div className="dialog-prefetch-progress">
<div className="progress">
<div className="bar" style={{ width: `${progress * 100}%` }} />
</div>
</div>
</div>
</div>
);