2020-07-27 06:20:34 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as System from "~/components/system";
|
2020-08-03 02:29:11 +03:00
|
|
|
import * as Actions from "~/common/actions";
|
2021-01-15 02:42:07 +03:00
|
|
|
import * as Window from "~/common/window";
|
2020-08-07 09:33:44 +03:00
|
|
|
import * as Constants from "~/common/constants";
|
2020-09-05 02:15:29 +03:00
|
|
|
import * as SVG from "~/common/svg";
|
2020-09-14 03:34:58 +03:00
|
|
|
import * as Strings from "~/common/strings";
|
2020-11-28 07:39:01 +03:00
|
|
|
import * as Events from "~/common/custom-events";
|
2020-07-27 06:20:34 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
import { LoaderSpinner } from "~/components/system/components/Loaders";
|
2020-11-30 08:24:22 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-10-05 00:30:28 +03:00
|
|
|
import { SlateLayout } from "~/components/core/SlateLayout";
|
|
|
|
import { SlateLayoutMobile } from "~/components/core/SlateLayoutMobile";
|
2020-11-11 04:44:21 +03:00
|
|
|
import { FileTypeGroup } from "~/components/core/FileTypeIcon";
|
2020-12-11 05:59:17 +03:00
|
|
|
import { ButtonPrimary, ButtonSecondary } from "~/components/system/components/Buttons";
|
2020-07-27 06:20:34 +03:00
|
|
|
|
2020-11-26 02:19:02 +03:00
|
|
|
import ProcessedText from "~/components/core/ProcessedText";
|
2020-07-27 06:20:34 +03:00
|
|
|
import ScenePage from "~/components/core/ScenePage";
|
2020-08-22 07:25:34 +03:00
|
|
|
import ScenePageHeader from "~/components/core/ScenePageHeader";
|
2020-08-27 07:27:50 +03:00
|
|
|
import CircleButtonGray from "~/components/core/CircleButtonGray";
|
2020-09-14 08:22:19 +03:00
|
|
|
import EmptyState from "~/components/core/EmptyState";
|
2020-09-04 01:42:08 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
const STYLES_LOADER = css`
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: 90vh;
|
|
|
|
width: 100%;
|
|
|
|
`;
|
|
|
|
|
2020-11-17 06:17:56 +03:00
|
|
|
const STYLES_COPY_INPUT = css`
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
`;
|
|
|
|
|
2020-08-31 21:19:46 +03:00
|
|
|
const STYLES_USERNAME = css`
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
color: ${Constants.system.brand};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-10-01 03:41:53 +03:00
|
|
|
const STYLES_MOBILE_HIDDEN = css`
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_MOBILE_ONLY = css`
|
|
|
|
@media (min-width: ${Constants.sizes.mobile}px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
export default class SceneSlate extends React.Component {
|
|
|
|
state = {
|
|
|
|
notFound: false,
|
2021-02-03 07:40:24 +03:00
|
|
|
accessDenied: false,
|
2020-12-20 05:19:32 +03:00
|
|
|
};
|
2020-11-06 07:46:24 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
componentDidMount = async () => {
|
|
|
|
await this.fetchSlate();
|
|
|
|
};
|
2020-11-06 07:46:24 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
componentDidUpdate = async (prevProps) => {
|
2021-01-15 23:27:00 +03:00
|
|
|
if (this.props.data?.id && prevProps.data?.id && this.props.data.id !== prevProps.data.id) {
|
2020-12-20 05:19:32 +03:00
|
|
|
await this.fetchSlate();
|
|
|
|
}
|
|
|
|
};
|
2020-11-06 07:46:24 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
fetchSlate = async () => {
|
2021-01-22 00:53:33 +03:00
|
|
|
const { user: username, slate: slatename, cid } = this.props.page;
|
2020-11-06 07:46:24 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
if (!this.props.data && (!username || !slatename)) {
|
|
|
|
this.setState({ notFound: true });
|
|
|
|
return;
|
|
|
|
}
|
2020-09-09 07:12:54 +03:00
|
|
|
|
2020-12-20 05:19:32 +03:00
|
|
|
//NOTE(martina): look for the slate in the user's slates
|
|
|
|
let slate;
|
|
|
|
if (this.props.data?.id) {
|
|
|
|
for (let s of this.props.viewer.slates) {
|
|
|
|
if (this.props.data.id && this.props.data.id === s.id) {
|
|
|
|
slate = s;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (slatename && username === this.props.viewer.username) {
|
|
|
|
for (let s of this.props.viewer.slates) {
|
|
|
|
if (username && slatename === s.slatename) {
|
|
|
|
slate = s;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!slate) {
|
|
|
|
Events.dispatchMessage({ message: "We're having trouble fetching that slate right now." });
|
|
|
|
this.setState({ notFound: true });
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (slate) {
|
|
|
|
window.history.replaceState(
|
|
|
|
{ ...window.history.state, data: slate },
|
|
|
|
"Slate",
|
|
|
|
`/${this.props.viewer.username}/${slate.slatename}`
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!slate) {
|
|
|
|
let query;
|
|
|
|
if (username && slatename) {
|
|
|
|
query = { username, slatename };
|
|
|
|
} else if (this.props.data && this.props.data.id) {
|
|
|
|
query = { id: this.props.data.id };
|
|
|
|
}
|
|
|
|
let response;
|
|
|
|
if (query) {
|
|
|
|
response = await Actions.getSerializedSlate(query);
|
|
|
|
}
|
2021-02-03 07:40:24 +03:00
|
|
|
if (response?.decorator == "SLATE_PRIVATE_ACCESS_DENIED") {
|
|
|
|
this.setState({ accessDenied: true });
|
|
|
|
return;
|
|
|
|
}
|
2020-12-20 05:19:32 +03:00
|
|
|
if (Events.hasError(response)) {
|
|
|
|
this.setState({ notFound: true });
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
slate = response.data;
|
|
|
|
window.history.replaceState(
|
|
|
|
{ ...window.history.state, data: slate },
|
|
|
|
"Slate",
|
|
|
|
`/${response.data.user.username}/${response.data.slatename}`
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
this.props.onUpdateData({ data: slate });
|
|
|
|
|
|
|
|
let index = -1;
|
2021-01-22 00:53:33 +03:00
|
|
|
let page = this.props.page;
|
|
|
|
if (page?.fileId || page?.cid || page?.index || !Strings.isEmpty(cid)) {
|
|
|
|
if (page?.index) {
|
|
|
|
index = page.index;
|
2020-12-20 05:19:32 +03:00
|
|
|
} else {
|
|
|
|
for (let i = 0; i < slate.data.objects.length; i++) {
|
|
|
|
let obj = slate.data.objects[i];
|
|
|
|
if (
|
2021-01-22 00:53:33 +03:00
|
|
|
(obj.cid && (obj.cid === cid || obj.cid === page?.cid)) ||
|
|
|
|
(obj.id && obj.id === page?.fileId)
|
2020-12-20 05:19:32 +03:00
|
|
|
) {
|
|
|
|
index = i;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (index !== -1) {
|
|
|
|
Events.dispatchCustomEvent({
|
|
|
|
name: "slate-global-open-carousel",
|
|
|
|
detail: { index },
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
2021-02-03 07:40:24 +03:00
|
|
|
if (this.state.notFound || this.state.accessDenied) {
|
2020-12-20 05:19:32 +03:00
|
|
|
return (
|
|
|
|
<ScenePage>
|
|
|
|
<EmptyState>
|
|
|
|
<SVG.Layers height="24px" style={{ marginBottom: 24 }} />
|
2021-02-03 07:40:24 +03:00
|
|
|
<div>
|
|
|
|
{this.state.accessDenied
|
|
|
|
? "You do not have access to that slate"
|
|
|
|
: "We were unable to locate that slate"}
|
|
|
|
</div>
|
2020-12-20 05:19:32 +03:00
|
|
|
</EmptyState>
|
|
|
|
</ScenePage>
|
|
|
|
);
|
|
|
|
}
|
2021-01-15 02:42:07 +03:00
|
|
|
if (!this.props.data?.data?.objects) {
|
2020-12-20 05:19:32 +03:00
|
|
|
return (
|
|
|
|
<ScenePage>
|
|
|
|
<div css={STYLES_LOADER}>
|
|
|
|
<LoaderSpinner />
|
|
|
|
</div>
|
|
|
|
</ScenePage>
|
|
|
|
);
|
|
|
|
}
|
2021-01-15 02:42:07 +03:00
|
|
|
return <SlatePage {...this.props} current={this.props.data} />;
|
2020-12-20 05:19:32 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class SlatePage extends React.Component {
|
2020-11-17 06:17:56 +03:00
|
|
|
_copy = null;
|
2020-09-03 09:00:02 +03:00
|
|
|
_timeout = null;
|
|
|
|
_remoteLock = false;
|
|
|
|
|
2020-08-03 02:29:11 +03:00
|
|
|
state = {
|
2020-10-05 00:30:28 +03:00
|
|
|
...(this.props.current, this.props.viewer),
|
|
|
|
editing: false,
|
2020-12-15 04:50:20 +03:00
|
|
|
isFollowing: !!this.props.viewer.subscriptions.filter((subscription) => {
|
|
|
|
return subscription.target_slate_id === this.props.current.id;
|
|
|
|
}).length,
|
2020-08-03 02:29:11 +03:00
|
|
|
};
|
|
|
|
|
2020-09-03 09:00:02 +03:00
|
|
|
// NOTE(jim):
|
|
|
|
// The purpose of this is to update the Scene appropriately when
|
|
|
|
// it changes but isn't mounted.
|
2020-12-22 04:20:24 +03:00
|
|
|
componentDidUpdate(prevProps) {
|
2020-12-15 04:50:20 +03:00
|
|
|
if (
|
|
|
|
prevProps.current.id !== this.props.current.id ||
|
|
|
|
this.props.viewer.subscriptions !== prevProps.viewer.subscriptions
|
|
|
|
) {
|
2020-12-22 04:20:24 +03:00
|
|
|
this.setState({
|
2020-12-15 04:50:20 +03:00
|
|
|
isFollowing: !!this.props.viewer.subscriptions.filter((subscription) => {
|
|
|
|
return subscription.target_slate_id === this.props.current.id;
|
|
|
|
}).length,
|
2020-09-03 09:00:02 +03:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-15 00:29:41 +03:00
|
|
|
_handleFollow = () => {
|
2020-12-15 04:50:20 +03:00
|
|
|
this.setState({ isFollowing: !this.state.isFollowing });
|
2020-10-31 02:12:20 +03:00
|
|
|
Actions.createSubscription({
|
|
|
|
slateId: this.props.current.id,
|
2020-09-03 02:17:31 +03:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2020-10-05 00:30:28 +03:00
|
|
|
_handleSaveLayout = async (layouts, autoSave) => {
|
|
|
|
await this._handleSave(null, null, layouts, autoSave);
|
2020-08-22 12:32:40 +03:00
|
|
|
};
|
|
|
|
|
2020-10-05 00:30:28 +03:00
|
|
|
_handleSave = async (e, objects, layouts, autoSave = false, preview) => {
|
|
|
|
let layoutOnly = layouts && !objects;
|
|
|
|
|
|
|
|
let data = {};
|
|
|
|
if (objects) {
|
|
|
|
data.objects = objects;
|
|
|
|
}
|
|
|
|
if (layouts) {
|
|
|
|
data.layouts = layouts;
|
|
|
|
}
|
|
|
|
if (preview) {
|
2020-12-15 04:43:16 +03:00
|
|
|
let slates = this.props.viewer.slates;
|
|
|
|
let slateId = this.props.current.id;
|
|
|
|
for (let slate of slates) {
|
|
|
|
if (slate.id === slateId) {
|
|
|
|
slate.data.preview = preview;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.props.onUpdateViewer({ slates });
|
2020-10-05 00:30:28 +03:00
|
|
|
data.preview = preview;
|
|
|
|
}
|
2020-08-03 02:29:11 +03:00
|
|
|
const response = await Actions.updateSlate({
|
2020-09-03 03:10:17 +03:00
|
|
|
id: this.props.current.id,
|
2020-10-05 00:30:28 +03:00
|
|
|
layoutOnly,
|
|
|
|
autoSave,
|
|
|
|
data,
|
2020-08-03 02:29:11 +03:00
|
|
|
});
|
|
|
|
|
2020-10-05 00:30:28 +03:00
|
|
|
if (!autoSave) {
|
2020-11-28 07:39:01 +03:00
|
|
|
Events.hasError(response);
|
2020-08-03 02:29:11 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-08-09 11:08:46 +03:00
|
|
|
_handleSelect = (index) =>
|
2020-11-28 07:39:01 +03:00
|
|
|
Events.dispatchCustomEvent({
|
2020-08-09 11:08:46 +03:00
|
|
|
name: "slate-global-open-carousel",
|
|
|
|
detail: { index },
|
|
|
|
});
|
2020-07-27 11:33:39 +03:00
|
|
|
|
2020-09-08 07:04:24 +03:00
|
|
|
_handleAdd = async () => {
|
|
|
|
await this.props.onAction({
|
2020-08-09 11:08:46 +03:00
|
|
|
type: "SIDEBAR",
|
|
|
|
value: "SIDEBAR_ADD_FILE_TO_BUCKET",
|
2020-09-03 03:10:17 +03:00
|
|
|
data: this.props.current,
|
2020-08-09 11:08:46 +03:00
|
|
|
});
|
2020-10-05 00:30:28 +03:00
|
|
|
};
|
|
|
|
|
2020-08-09 11:08:46 +03:00
|
|
|
_handleShowSettings = () => {
|
|
|
|
return this.props.onAction({
|
|
|
|
type: "SIDEBAR",
|
|
|
|
value: "SIDEBAR_SINGLE_SLATE_SETTINGS",
|
2020-09-03 03:10:17 +03:00
|
|
|
data: this.props.current,
|
2020-08-09 11:08:46 +03:00
|
|
|
});
|
|
|
|
};
|
2020-07-27 11:33:39 +03:00
|
|
|
|
2020-11-17 06:17:56 +03:00
|
|
|
_handleCopy = (e, value) => {
|
|
|
|
e.stopPropagation();
|
|
|
|
e.preventDefault();
|
|
|
|
this.setState({ copyValue: value, copying: true }, () => {
|
|
|
|
this._copy.select();
|
|
|
|
document.execCommand("copy");
|
|
|
|
});
|
|
|
|
setTimeout(() => {
|
|
|
|
this.setState({ copying: false });
|
|
|
|
}, 1000);
|
|
|
|
};
|
|
|
|
|
2020-08-09 11:08:46 +03:00
|
|
|
render() {
|
2020-10-05 00:30:28 +03:00
|
|
|
const { user, data } = this.props.current;
|
|
|
|
const { body = "", preview } = data;
|
|
|
|
let objects = this.props.current.data.objects;
|
|
|
|
let layouts = this.props.current.data.layouts;
|
2020-09-27 08:38:19 +03:00
|
|
|
const isPublic = data.public;
|
2020-12-15 04:50:20 +03:00
|
|
|
const isOwner = this.props.current.data.ownerId === this.props.viewer.id;
|
2020-09-08 01:47:54 +03:00
|
|
|
|
2020-12-15 04:50:20 +03:00
|
|
|
let actions = isOwner ? (
|
2020-10-05 00:30:28 +03:00
|
|
|
<span>
|
2020-10-01 03:41:53 +03:00
|
|
|
<CircleButtonGray onClick={this._handleAdd} style={{ marginRight: 16 }}>
|
|
|
|
<SVG.Plus height="16px" />
|
|
|
|
</CircleButtonGray>
|
|
|
|
<CircleButtonGray onClick={this._handleShowSettings}>
|
|
|
|
<SVG.Settings height="16px" />
|
|
|
|
</CircleButtonGray>
|
|
|
|
</span>
|
|
|
|
) : (
|
2020-11-06 07:46:24 +03:00
|
|
|
<div style={{ display: `flex` }}>
|
|
|
|
<div onClick={this._handleFollow}>
|
2020-12-15 04:50:20 +03:00
|
|
|
{this.state.isFollowing ? (
|
2020-12-18 05:59:41 +03:00
|
|
|
<ButtonSecondary>Unfollow</ButtonSecondary>
|
2020-11-06 07:46:24 +03:00
|
|
|
) : (
|
2020-12-18 05:59:41 +03:00
|
|
|
<ButtonPrimary>Follow</ButtonPrimary>
|
2020-11-06 07:46:24 +03:00
|
|
|
)}
|
|
|
|
</div>
|
2020-10-01 03:41:53 +03:00
|
|
|
</div>
|
|
|
|
);
|
2020-07-27 11:33:39 +03:00
|
|
|
return (
|
2020-11-20 00:20:50 +03:00
|
|
|
<ScenePage>
|
2020-08-22 07:25:34 +03:00
|
|
|
<ScenePageHeader
|
2020-10-05 00:30:28 +03:00
|
|
|
wide
|
2020-08-31 21:19:46 +03:00
|
|
|
title={
|
2020-09-04 01:42:08 +03:00
|
|
|
user ? (
|
2020-08-31 21:19:46 +03:00
|
|
|
<span>
|
|
|
|
<span
|
|
|
|
onClick={() =>
|
|
|
|
this.props.onAction({
|
|
|
|
type: "NAVIGATE",
|
|
|
|
value: this.props.sceneId,
|
2020-12-20 05:19:32 +03:00
|
|
|
scene: "PROFILE",
|
2020-09-04 01:42:08 +03:00
|
|
|
data: user,
|
2020-08-31 21:19:46 +03:00
|
|
|
})
|
|
|
|
}
|
|
|
|
css={STYLES_USERNAME}
|
|
|
|
>
|
2020-09-04 01:42:08 +03:00
|
|
|
{user.username}
|
2020-08-31 21:19:46 +03:00
|
|
|
</span>{" "}
|
2020-09-05 07:45:50 +03:00
|
|
|
/ {data.name}
|
2020-08-31 21:19:46 +03:00
|
|
|
</span>
|
|
|
|
) : (
|
2020-09-05 07:45:50 +03:00
|
|
|
data.name
|
2020-08-31 21:19:46 +03:00
|
|
|
)
|
|
|
|
}
|
2020-10-01 03:51:25 +03:00
|
|
|
actions={<span css={STYLES_MOBILE_HIDDEN}>{actions}</span>}
|
2020-08-25 21:39:14 +03:00
|
|
|
>
|
2020-12-11 05:59:17 +03:00
|
|
|
{body}
|
2020-08-22 07:25:34 +03:00
|
|
|
</ScenePageHeader>
|
2020-10-01 03:41:53 +03:00
|
|
|
<span css={STYLES_MOBILE_ONLY}>{actions}</span>
|
2020-09-14 11:21:06 +03:00
|
|
|
{objects && objects.length ? (
|
2020-10-05 00:30:28 +03:00
|
|
|
this.props.mobile ? (
|
|
|
|
<SlateLayoutMobile
|
2020-12-15 04:50:20 +03:00
|
|
|
isOwner={isOwner}
|
2020-09-14 08:22:19 +03:00
|
|
|
items={objects}
|
2020-10-23 21:38:30 +03:00
|
|
|
fileNames={layouts && layouts.ver === "2.0" ? layouts.fileNames : false}
|
2020-09-14 08:22:19 +03:00
|
|
|
onSelect={this._handleSelect}
|
|
|
|
/>
|
2020-10-05 00:30:28 +03:00
|
|
|
) : (
|
2020-12-15 04:50:20 +03:00
|
|
|
<div style={{ marginTop: isOwner ? 24 : 48 }}>
|
2020-10-05 00:30:28 +03:00
|
|
|
<SlateLayout
|
2021-01-21 00:50:29 +03:00
|
|
|
key={this.props.current.id}
|
2020-11-24 09:31:52 +03:00
|
|
|
current={this.props.current}
|
2020-12-15 04:43:16 +03:00
|
|
|
onUpdateViewer={this.props.onUpdateViewer}
|
2020-10-05 00:30:28 +03:00
|
|
|
viewer={this.props.viewer}
|
|
|
|
slateId={this.props.current.id}
|
2020-10-23 21:38:30 +03:00
|
|
|
layout={layouts && layouts.ver === "2.0" ? layouts.layout || [] : null}
|
2020-10-05 00:30:28 +03:00
|
|
|
onSaveLayout={this._handleSaveLayout}
|
2020-12-15 04:43:16 +03:00
|
|
|
onSave={this._handleSave}
|
2020-12-15 04:50:20 +03:00
|
|
|
isOwner={isOwner}
|
2020-10-23 21:38:30 +03:00
|
|
|
fileNames={layouts && layouts.ver === "2.0" ? layouts.fileNames : false}
|
2020-10-05 00:30:28 +03:00
|
|
|
preview={preview}
|
2020-10-23 21:38:30 +03:00
|
|
|
onSavePreview={(preview) => this._handleSave(null, null, null, false, preview)}
|
2020-10-05 00:30:28 +03:00
|
|
|
items={objects}
|
|
|
|
onSelect={this._handleSelect}
|
2020-10-23 21:38:30 +03:00
|
|
|
defaultLayout={layouts && layouts.ver === "2.0" ? layouts.defaultLayout : true}
|
2020-10-05 00:30:28 +03:00
|
|
|
onAction={this.props.onAction}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)
|
2020-12-15 04:50:20 +03:00
|
|
|
) : isOwner ? (
|
2020-11-20 05:19:04 +03:00
|
|
|
<div>
|
2020-09-14 08:22:19 +03:00
|
|
|
<EmptyState>
|
2020-11-11 04:44:21 +03:00
|
|
|
<FileTypeGroup />
|
2020-10-23 21:38:30 +03:00
|
|
|
<div style={{ marginTop: 24 }}>Drag and drop files to add them to this slate</div>
|
2020-09-14 08:22:19 +03:00
|
|
|
</EmptyState>
|
|
|
|
</div>
|
2020-10-05 00:30:28 +03:00
|
|
|
) : (
|
2020-11-20 05:19:04 +03:00
|
|
|
<div>
|
2020-10-05 00:30:28 +03:00
|
|
|
<EmptyState>There's nothing here :)</EmptyState>
|
|
|
|
</div>
|
|
|
|
)}
|
2020-11-17 06:17:56 +03:00
|
|
|
<input
|
|
|
|
ref={(c) => {
|
|
|
|
this._copy = c;
|
|
|
|
}}
|
|
|
|
readOnly
|
|
|
|
value={this.state.copyValue}
|
|
|
|
css={STYLES_COPY_INPUT}
|
|
|
|
/>
|
2020-07-27 11:33:39 +03:00
|
|
|
</ScenePage>
|
|
|
|
);
|
2020-07-27 06:20:34 +03:00
|
|
|
}
|
|
|
|
}
|