Link Previews

This commit is contained in:
Scott Nonnenberg 2019-01-15 19:03:56 -08:00
parent 91ef39e482
commit 813924685e
36 changed files with 2298 additions and 134 deletions

View file

@ -11,8 +11,8 @@ import { Localizer } from '../../types/Util';
interface Props {
attachments: Array<AttachmentType>;
withContentAbove: boolean;
withContentBelow: boolean;
withContentAbove?: boolean;
withContentBelow?: boolean;
bottomOverlay?: boolean;
i18n: Localizer;
@ -370,7 +370,7 @@ type DimensionsType = {
width: number;
};
function getImageDimensions(attachment: AttachmentType): DimensionsType {
export function getImageDimensions(attachment: AttachmentType): DimensionsType {
const { height, width } = attachment;
if (!height || !width) {
return {