fix(github-graphql): use getMediaDisplayURL to load media with auth header (#2652)
This commit is contained in:
committed by
Shawn Erquhart
parent
a801636967
commit
e674e43f9f
@ -100,6 +100,8 @@ MediaLibraryCard.propTypes = {
|
||||
margin: PropTypes.string.isRequired,
|
||||
isPrivate: PropTypes.bool,
|
||||
type: PropTypes.string,
|
||||
isViewableImage: PropTypes.bool.isRequired,
|
||||
loadDisplayURL: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
export default MediaLibraryCard;
|
||||
|
@ -86,6 +86,7 @@ MediaLibraryCardGrid.propTypes = {
|
||||
cardMargin: PropTypes.string.isRequired,
|
||||
loadDisplayURL: PropTypes.func.isRequired,
|
||||
isPrivate: PropTypes.bool,
|
||||
displayURLs: PropTypes.instanceOf(Map).isRequired,
|
||||
};
|
||||
|
||||
export default MediaLibraryCardGrid;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styled from '@emotion/styled';
|
||||
import { Map } from 'immutable';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { translate } from 'react-polyglot';
|
||||
import { Modal } from 'UI';
|
||||
@ -219,6 +220,7 @@ MediaLibraryModal.propTypes = {
|
||||
handleLoadMore: PropTypes.func.isRequired,
|
||||
loadDisplayURL: PropTypes.func.isRequired,
|
||||
t: PropTypes.func.isRequired,
|
||||
displayURLs: PropTypes.instanceOf(Map).isRequired,
|
||||
};
|
||||
|
||||
export default translate()(MediaLibraryModal);
|
||||
|
Reference in New Issue
Block a user