@@ -127,7 +127,8 @@ AssetListRowBase.propTypes = {
127127 url : PropTypes . string . isRequired ,
128128 sketchId : PropTypes . string ,
129129 sketchName : PropTypes . string ,
130- name : PropTypes . string . isRequired
130+ name : PropTypes . string . isRequired ,
131+ size : PropTypes . number . isRequired
131132 } ) . isRequired ,
132133 deleteAssetRequest : PropTypes . func . isRequired ,
133134 username : PropTypes . string . isRequired
@@ -172,13 +173,9 @@ class AssetList extends React.Component {
172173 }
173174
174175 render ( ) {
175- const { assetList, totalSize } = this . props ;
176+ const { assetList } = this . props ;
176177 return (
177178 < div className = "asset-table-container" >
178- { /* Eventually, this copy should be Total / 250 MB Used */ }
179- { this . hasAssets ( ) && totalSize &&
180- < p className = "asset-table__total" > { `${ prettyBytes ( totalSize ) } Total` } </ p >
181- }
182179 < Helmet >
183180 < title > { this . getAssetsTitle ( ) } </ title >
184181 </ Helmet >
@@ -188,7 +185,7 @@ class AssetList extends React.Component {
188185 < table className = "asset-table" >
189186 < thead >
190187 < tr >
191- < th > Name</ th >
188+ < th > Name</ th >
192189 < th > Size</ th >
193190 < th > Sketch</ th >
194191 < th scope = "col" > </ th >
@@ -214,20 +211,14 @@ AssetList.propTypes = {
214211 sketchName : PropTypes . string ,
215212 sketchId : PropTypes . string
216213 } ) ) . isRequired ,
217- totalSize : PropTypes . number ,
218214 getAssets : PropTypes . func . isRequired ,
219215 loading : PropTypes . bool . isRequired
220216} ;
221217
222- AssetList . defaultProps = {
223- totalSize : undefined
224- } ;
225-
226218function mapStateToProps ( state ) {
227219 return {
228220 user : state . user ,
229221 assetList : state . assets . list ,
230- totalSize : state . user . totalSize ,
231222 loading : state . loading
232223 } ;
233224}
0 commit comments