Sha256: 8fc854755fce606a5d5581380659e14c86289b3777a8dac07f96193f0a2497f1

Contents?: true

Size: 441 Bytes

Versions: 15

Compression:

Stored size: 441 Bytes

Contents

import React from "react";
import PropTypes from "prop-types";

export default function Placeholder(props) {
  if (props.src) {
    return (
      <div className="temp-image">
        <img src={props.src} />
        <span>Uploading...</span>
      </div>
    );
  } else {
    return (
      <div className="file-placeholder">
        <span>Uploading...</span>
      </div>
    );
  }
}

Placeholder.propTypes = {
  src: PropTypes.string
};

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pages_core-3.12.1 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.12.0 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.11.3 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.11.2 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.11.1 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.11.0 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.10.2 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.10.1 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.9.2 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.9.1 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.9.0 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.8.3 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.8.2 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.8.1 app/javascript/components/ImageGrid/Placeholder.jsx
pages_core-3.8.0 app/javascript/components/ImageGrid/Placeholder.jsx