mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
* Update localforage, remove query-string * Update fontawesome and flag-icons * Update formatjs * Update axios and videojs * Update apollo client and graphql * Update bootstrap and react * Update polyfills * Update vite * Update ESLint * Update stylelint * Update configs * Rebuild yarn.lock
39 lines
867 B
TypeScript
39 lines
867 B
TypeScript
import React from "react";
|
|
import { Form } from "react-bootstrap";
|
|
import { Modal } from "src/components/Shared";
|
|
import { faCogs } from "@fortawesome/free-solid-svg-icons";
|
|
import { useIntl } from "react-intl";
|
|
import { MarkdownPage } from "../Shared/MarkdownPage";
|
|
|
|
interface IReleaseNotesDialog {
|
|
notes: string[];
|
|
onClose: () => void;
|
|
}
|
|
|
|
export const ReleaseNotesDialog: React.FC<IReleaseNotesDialog> = ({
|
|
notes,
|
|
onClose,
|
|
}) => {
|
|
const intl = useIntl();
|
|
|
|
return (
|
|
<Modal
|
|
show
|
|
icon={faCogs}
|
|
header={intl.formatMessage({ id: "release_notes" })}
|
|
accept={{
|
|
onClick: onClose,
|
|
text: intl.formatMessage({ id: "actions.close" }),
|
|
}}
|
|
>
|
|
<Form>
|
|
{notes.map((n, i) => (
|
|
<MarkdownPage page={n} key={i} />
|
|
))}
|
|
</Form>
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
export default ReleaseNotesDialog;
|