Sha256: dea1f7a06b9e91042e0e7b444466d3a34209a4dbb92a2f6756fa771ef9e9c472

Contents?: true

Size: 590 Bytes

Versions: 4

Compression:

Stored size: 590 Bytes

Contents

import React from "react";

import * as Attachments from "../../types/Attachments";
import { Locale } from "../../types";

import List from "../Attachments/List";

interface Props {
  locale: string;
  locales: { [index: string]: Locale };
  state: Attachments.State;
}

export default function Files(props: Props) {
  const { locale, locales, state } = props;

  return (
    <div className="page-files">
      <List
        attribute="page[page_files_attributes]"
        showEmbed={true}
        locale={locale}
        locales={locales}
        state={state}
      />
    </div>
  );
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pages_core-3.15.4 app/javascript/components/PageForm/Files.tsx
pages_core-3.15.3 app/javascript/components/PageForm/Files.tsx
pages_core-3.15.2 app/javascript/components/PageForm/Files.tsx
pages_core-3.15.1 app/javascript/components/PageForm/Files.tsx