2021-07-27 18:20:57 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Strings from "~/common/strings";
|
|
|
|
import * as Styles from "~/common/styles";
|
|
|
|
import * as Actions from "~/common/actions";
|
|
|
|
import * as Events from "~/common/custom-events";
|
2022-06-20 13:12:08 +03:00
|
|
|
import * as Constants from "~/common/constants";
|
2021-07-27 18:20:57 +03:00
|
|
|
|
|
|
|
import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
|
|
|
|
|
|
|
|
import { SignUpPopover } from "~/components/core/Auth/components";
|
|
|
|
import { H5, P3 } from "~/components/system/components/Typography";
|
|
|
|
import { css } from "@emotion/react";
|
|
|
|
import { ButtonPrimary } from "~/components/system/components/Buttons";
|
|
|
|
import { useForm } from "~/common/hooks";
|
|
|
|
import { Input } from "~/components/system";
|
2021-11-11 20:34:42 +03:00
|
|
|
import { AuthWrapper } from "~/components/core/Auth/components";
|
2021-07-27 18:20:57 +03:00
|
|
|
|
2021-07-27 19:51:39 +03:00
|
|
|
const TOOLS_OPTIONS = {
|
2021-12-09 19:42:04 +03:00
|
|
|
"Browser Bookmarks": "prevToolsBrowserBookmarks",
|
2021-12-29 11:52:15 +03:00
|
|
|
Pinterest: "prevToolsPinterest",
|
|
|
|
"Are.na": "prevToolsArena",
|
|
|
|
"Notes platform (Notion, Evernote, etc.)": "prevToolsNotesPlatform",
|
2021-07-27 19:51:39 +03:00
|
|
|
};
|
|
|
|
const SLATE_USECASES_OPTIONS = {
|
2021-12-29 11:52:15 +03:00
|
|
|
"Bookmarking important pages": "useCasesBookmarkingImportantPages",
|
|
|
|
"Saving links to read later": "useCasesSavingLinksToReadLater",
|
|
|
|
"Searching your browsed pages": "useCasesSearchingYourBrowsedPages",
|
|
|
|
"Sharing collections of links": "useCasesSharingCollectionsOfLinks",
|
2021-07-27 19:51:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const REFERRAL_OPTIONS = {
|
2021-12-09 19:42:04 +03:00
|
|
|
Twitter: "referralTwitter",
|
|
|
|
"IPFS/Filecoin Community": "referralIpfsFilecoinCommunity",
|
|
|
|
"From a friend": "referralFriend",
|
2021-07-27 19:51:39 +03:00
|
|
|
};
|
2021-07-27 18:20:57 +03:00
|
|
|
|
|
|
|
// NOTE(amine): form styles
|
|
|
|
const STYLES_FORM_WRAPPER = css`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
`;
|
|
|
|
|
|
|
|
// NOTE(amine): input styles
|
|
|
|
const STYLES_SURVEY_INPUT = (theme) => css`
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 45px;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 0 0 1px ${theme.system.gray};
|
|
|
|
background-color: transparent;
|
|
|
|
& > input::placeholder {
|
|
|
|
${Styles.H5};
|
|
|
|
color: ${theme.semantic.textGray};
|
|
|
|
text-align: center;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
// NOTE(amine): checkbox styles
|
|
|
|
const STYLES_CHECKBOX_WRAPPER = (theme) => css`
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 45px;
|
|
|
|
border-radius: 8px;
|
|
|
|
border: 1px solid ${theme.system.gray};
|
|
|
|
background-color: transparent;
|
|
|
|
transition: all 0.3s;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_CHECKBOX_SELECTED = (theme) => css`
|
|
|
|
border: 1px solid ${theme.system.blue};
|
|
|
|
background-color: ${theme.system.grayLight4};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_CHECKBOX_INPUT = css`
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
top: 0%;
|
|
|
|
left: 0%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-12-09 19:42:04 +03:00
|
|
|
font-size: 16px;
|
2021-07-27 18:20:57 +03:00
|
|
|
${Styles.HOVERABLE};
|
|
|
|
`;
|
|
|
|
|
2021-11-11 17:48:29 +03:00
|
|
|
function SceneSurvey({ onAction }) {
|
2021-07-27 18:20:57 +03:00
|
|
|
const [step, setStep] = React.useState(1);
|
2021-12-09 19:42:04 +03:00
|
|
|
const defaultTools = Object.entries(TOOLS_OPTIONS).reduce(
|
|
|
|
(acc, [, key]) => ({ ...acc, [key]: false }),
|
|
|
|
{}
|
|
|
|
);
|
|
|
|
const defaultUseCases = Object.entries(SLATE_USECASES_OPTIONS).reduce(
|
|
|
|
(acc, [, key]) => ({ ...acc, [key]: false }),
|
|
|
|
{}
|
|
|
|
);
|
|
|
|
const defaultReferrals = Object.entries(REFERRAL_OPTIONS).reduce(
|
|
|
|
(acc, [, key]) => ({ ...acc, [key]: false }),
|
|
|
|
{}
|
|
|
|
);
|
|
|
|
|
|
|
|
const surveyResults = React.useRef({ ...defaultTools, ...defaultUseCases, ...defaultReferrals });
|
2021-07-27 18:20:57 +03:00
|
|
|
|
|
|
|
if (step === 1) {
|
|
|
|
return (
|
|
|
|
<ToolsForm
|
|
|
|
onSubmit={(value) => {
|
2021-12-09 19:42:04 +03:00
|
|
|
const tools = value.reduce((acc, item) => {
|
|
|
|
const key = TOOLS_OPTIONS[item];
|
|
|
|
|
|
|
|
if (key) acc[key] = true;
|
|
|
|
else acc["prevToolsOther"] = item;
|
|
|
|
|
|
|
|
return acc;
|
|
|
|
}, {});
|
|
|
|
|
|
|
|
surveyResults.current = {
|
|
|
|
...surveyResults.current,
|
|
|
|
...tools,
|
|
|
|
};
|
2021-07-27 18:20:57 +03:00
|
|
|
setStep(2);
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (step === 2) {
|
|
|
|
return (
|
|
|
|
<UsecasesForm
|
|
|
|
onSubmit={(value) => {
|
2021-12-09 19:42:04 +03:00
|
|
|
const useCases = value.reduce((acc, item) => {
|
|
|
|
const key = SLATE_USECASES_OPTIONS[item];
|
|
|
|
|
|
|
|
if (key) acc[key] = true;
|
|
|
|
else acc["useCasesOther"] = item;
|
|
|
|
|
|
|
|
return acc;
|
|
|
|
}, {});
|
|
|
|
|
|
|
|
surveyResults.current = {
|
|
|
|
...surveyResults.current,
|
|
|
|
...useCases,
|
|
|
|
};
|
2021-07-27 18:20:57 +03:00
|
|
|
setStep(3);
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<ReferralForm
|
|
|
|
onSubmit={async (value) => {
|
2021-12-09 19:42:04 +03:00
|
|
|
const referrals = value.reduce((acc, item) => {
|
|
|
|
const key = REFERRAL_OPTIONS[item];
|
|
|
|
|
|
|
|
if (key) acc[key] = true;
|
|
|
|
else acc["referralOther"] = item;
|
|
|
|
|
|
|
|
return acc;
|
|
|
|
}, {});
|
|
|
|
|
2021-12-20 19:06:16 +03:00
|
|
|
const surveyAnswers = { ...surveyResults.current, ...referrals };
|
2021-12-08 15:10:13 +03:00
|
|
|
|
2021-12-20 19:06:16 +03:00
|
|
|
const response = await Actions.createSurvey(surveyAnswers);
|
2021-07-27 18:20:57 +03:00
|
|
|
if (Events.hasError(response)) {
|
|
|
|
return;
|
|
|
|
}
|
2021-12-20 19:06:16 +03:00
|
|
|
onAction({
|
|
|
|
type: "UPDATE_VIEWER",
|
|
|
|
viewer: { hasCompletedSurvey: true },
|
|
|
|
});
|
2021-07-27 18:20:57 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-01-23 16:53:17 +03:00
|
|
|
const useSurveyValidations = () => {
|
|
|
|
const [isSurveyValid, setSurveyValidity] = React.useState(true);
|
|
|
|
const checkSurveyValidity = ({ options, other }) => {
|
|
|
|
const isValid = options.some((answer) => answer) || !!other;
|
|
|
|
setSurveyValidity(isValid);
|
|
|
|
return isValid;
|
|
|
|
};
|
|
|
|
const resetSurveyValidity = () => setSurveyValidity(true);
|
|
|
|
|
|
|
|
return { isSurveyValid, checkSurveyValidity, resetSurveyValidity };
|
|
|
|
};
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const ToolsForm = ({ onSubmit }) => {
|
2022-01-23 16:53:17 +03:00
|
|
|
const { isSurveyValid, checkSurveyValidity, resetSurveyValidity } = useSurveyValidations();
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const { getFieldProps, getFormProps, values } = useForm({
|
|
|
|
initialValues: { tools: [], other: "" },
|
|
|
|
onSubmit: ({ tools, other }) => {
|
2022-01-23 16:53:17 +03:00
|
|
|
if (!checkSurveyValidity({ options: tools, other })) return;
|
2021-07-27 18:20:57 +03:00
|
|
|
const value = [...tools];
|
|
|
|
if (!Strings.isEmpty(other)) {
|
|
|
|
value.push(other);
|
|
|
|
}
|
|
|
|
onSubmit(value);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-01-23 16:53:17 +03:00
|
|
|
React.useEffect(() => {
|
|
|
|
resetSurveyValidity();
|
|
|
|
}, [values]);
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const isCheckBoxSelected = (fieldValue) => values.tools.some((item) => item === fieldValue);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<SignUpPopover title="What do you currently use for saving things on the web?">
|
|
|
|
<form css={STYLES_FORM_WRAPPER} {...getFormProps()}>
|
|
|
|
<H5
|
|
|
|
style={{ marginTop: 24 }}
|
2022-01-23 16:53:17 +03:00
|
|
|
css={(theme) =>
|
|
|
|
css({ color: isSurveyValid ? theme.semantic.textGrayDark : theme.system.red })
|
|
|
|
}
|
2021-07-27 18:20:57 +03:00
|
|
|
>
|
2022-01-23 16:53:17 +03:00
|
|
|
{isSurveyValid ? "Select all that apply" : "Please select at least 1 option"}
|
2021-07-27 18:20:57 +03:00
|
|
|
</H5>
|
2021-07-27 19:51:39 +03:00
|
|
|
{Object.keys(TOOLS_OPTIONS).map((item, i) => (
|
2021-07-27 18:20:57 +03:00
|
|
|
<Checkbox
|
|
|
|
key={i}
|
|
|
|
style={{ marginTop: 12 }}
|
|
|
|
type="checkbox"
|
|
|
|
isSelected={isCheckBoxSelected(item)}
|
|
|
|
{...getFieldProps("tools", { type: "checkbox" })}
|
|
|
|
value={item}
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
<Input
|
|
|
|
inputCss={STYLES_SURVEY_INPUT}
|
|
|
|
style={{ marginTop: 12 }}
|
|
|
|
placeholder="Others"
|
|
|
|
type="text"
|
2022-01-23 16:53:17 +03:00
|
|
|
full
|
2021-07-27 18:20:57 +03:00
|
|
|
{...getFieldProps("other")}
|
|
|
|
/>
|
2022-01-23 16:53:17 +03:00
|
|
|
<ButtonPrimary type="submit" style={{ marginTop: 24 }} full>
|
2021-07-27 18:20:57 +03:00
|
|
|
Next
|
|
|
|
</ButtonPrimary>
|
|
|
|
<P3 style={{ marginTop: 12 }} color="textBlack">
|
2021-12-08 13:30:12 +03:00
|
|
|
1/<div style={{ display: "inline-block" }}>3</div>
|
2021-07-27 18:20:57 +03:00
|
|
|
</P3>
|
|
|
|
</form>
|
|
|
|
</SignUpPopover>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
const UsecasesForm = ({ onSubmit }) => {
|
2022-01-23 16:53:17 +03:00
|
|
|
const { isSurveyValid, checkSurveyValidity, resetSurveyValidity } = useSurveyValidations();
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const { getFieldProps, getFormProps, values } = useForm({
|
|
|
|
initialValues: { tools: [], other: "" },
|
|
|
|
onSubmit: ({ tools, other }) => {
|
2022-01-23 16:53:17 +03:00
|
|
|
if (!checkSurveyValidity({ options: tools, other })) return;
|
2021-07-27 18:20:57 +03:00
|
|
|
const value = [...tools];
|
|
|
|
if (!Strings.isEmpty(other)) {
|
|
|
|
value.push(other);
|
|
|
|
}
|
|
|
|
onSubmit(value);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-01-23 16:53:17 +03:00
|
|
|
React.useEffect(() => {
|
|
|
|
resetSurveyValidity();
|
|
|
|
}, [values]);
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const isCheckBoxSelected = (fieldValue) => values.tools.some((item) => item === fieldValue);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<SignUpPopover title="What are you interested in using Slate for?">
|
|
|
|
<form css={STYLES_FORM_WRAPPER} {...getFormProps()}>
|
2022-01-23 16:53:17 +03:00
|
|
|
<H5
|
|
|
|
style={{ marginTop: 24 }}
|
|
|
|
css={(theme) =>
|
|
|
|
css({ color: isSurveyValid ? theme.semantic.textGrayDark : theme.system.red })
|
|
|
|
}
|
|
|
|
>
|
|
|
|
{isSurveyValid ? "Select all that apply" : "Please select at least 1 option"}
|
2021-07-27 18:20:57 +03:00
|
|
|
</H5>
|
2021-07-27 19:51:39 +03:00
|
|
|
{Object.keys(SLATE_USECASES_OPTIONS).map((item, i) => (
|
2021-07-27 18:20:57 +03:00
|
|
|
<Checkbox
|
|
|
|
key={i}
|
|
|
|
style={{ marginTop: 12 }}
|
|
|
|
type="checkbox"
|
|
|
|
isSelected={isCheckBoxSelected(item)}
|
|
|
|
{...getFieldProps("tools", { type: "checkbox" })}
|
|
|
|
value={item}
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
<Input
|
|
|
|
inputCss={STYLES_SURVEY_INPUT}
|
|
|
|
style={{ marginTop: 12 }}
|
|
|
|
placeholder="Others"
|
|
|
|
type="text"
|
2022-01-23 16:53:17 +03:00
|
|
|
full
|
2021-07-27 18:20:57 +03:00
|
|
|
{...getFieldProps("other")}
|
|
|
|
/>
|
2022-01-23 16:53:17 +03:00
|
|
|
<ButtonPrimary type="submit" style={{ marginTop: 24 }} full>
|
2021-07-27 18:20:57 +03:00
|
|
|
Next
|
|
|
|
</ButtonPrimary>
|
|
|
|
<P3 style={{ marginTop: 12 }} color="textBlack">
|
2021-12-08 13:30:12 +03:00
|
|
|
2/<div style={{ display: "inline-block" }}>3</div>
|
2021-07-27 18:20:57 +03:00
|
|
|
</P3>
|
|
|
|
</form>
|
|
|
|
</SignUpPopover>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
const ReferralForm = ({ onSubmit }) => {
|
2022-01-23 16:53:17 +03:00
|
|
|
const { isSurveyValid, checkSurveyValidity, resetSurveyValidity } = useSurveyValidations();
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const { getFieldProps, getFormProps, isSubmitting, values } = useForm({
|
|
|
|
initialValues: { referrals: [], other: "" },
|
|
|
|
onSubmit: async ({ referrals, other }) => {
|
2022-01-23 16:53:17 +03:00
|
|
|
if (!checkSurveyValidity({ options: referrals, other })) return;
|
2021-07-27 18:20:57 +03:00
|
|
|
const value = [...referrals];
|
|
|
|
if (!Strings.isEmpty(other)) {
|
|
|
|
value.push(other);
|
|
|
|
}
|
|
|
|
await onSubmit(value);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-01-23 16:53:17 +03:00
|
|
|
React.useEffect(() => {
|
|
|
|
resetSurveyValidity();
|
|
|
|
}, [values]);
|
|
|
|
|
2021-07-27 18:20:57 +03:00
|
|
|
const isCheckBoxSelected = (fieldValue) => values.referrals.some((item) => item === fieldValue);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<SignUpPopover title="How did you find out about Slate?">
|
|
|
|
<form css={STYLES_FORM_WRAPPER} {...getFormProps()}>
|
2022-01-23 16:53:17 +03:00
|
|
|
<H5
|
|
|
|
style={{ marginTop: 24 }}
|
|
|
|
css={(theme) =>
|
|
|
|
css({ color: isSurveyValid ? theme.semantic.textGrayDark : theme.system.red })
|
|
|
|
}
|
|
|
|
>
|
|
|
|
{isSurveyValid ? "Select all that apply" : "Please select at least 1 option"}
|
2021-07-27 18:20:57 +03:00
|
|
|
</H5>
|
2021-07-27 19:51:39 +03:00
|
|
|
{Object.keys(REFERRAL_OPTIONS).map((item, i) => (
|
2021-07-27 18:20:57 +03:00
|
|
|
<Checkbox
|
|
|
|
key={i}
|
|
|
|
style={{ marginTop: 12 }}
|
|
|
|
type="checkbox"
|
|
|
|
isSelected={isCheckBoxSelected(item)}
|
|
|
|
{...getFieldProps("referrals", { type: "checkbox" })}
|
|
|
|
value={item}
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
<Input
|
|
|
|
inputCss={STYLES_SURVEY_INPUT}
|
|
|
|
style={{ marginTop: 12 }}
|
|
|
|
placeholder="Others"
|
|
|
|
type="text"
|
2022-01-23 16:53:17 +03:00
|
|
|
full
|
2021-07-27 18:20:57 +03:00
|
|
|
{...getFieldProps("other")}
|
|
|
|
/>
|
2022-01-23 16:53:17 +03:00
|
|
|
<ButtonPrimary type="submit" loading={isSubmitting} style={{ marginTop: 24 }} full>
|
2021-11-11 17:31:02 +03:00
|
|
|
Submit
|
2021-07-27 18:20:57 +03:00
|
|
|
</ButtonPrimary>
|
|
|
|
<P3 style={{ marginTop: 12 }} color="textBlack">
|
2021-12-08 13:30:12 +03:00
|
|
|
3/<div style={{ display: "inline-block" }}>3</div>
|
2021-07-27 18:20:57 +03:00
|
|
|
</P3>
|
|
|
|
</form>
|
|
|
|
</SignUpPopover>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
2021-07-27 19:51:39 +03:00
|
|
|
|
2021-12-20 19:06:16 +03:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
2021-07-27 19:51:39 +03:00
|
|
|
const Checkbox = ({ touched, value, style, isSelected, ...props }) => {
|
|
|
|
return (
|
|
|
|
<div style={style} css={[STYLES_CHECKBOX_WRAPPER, isSelected && STYLES_CHECKBOX_SELECTED]}>
|
2021-12-09 19:42:04 +03:00
|
|
|
<H5 color="textBlack" style={{ fontSize: 16 }}>
|
|
|
|
{value}
|
|
|
|
</H5>
|
2021-07-27 19:51:39 +03:00
|
|
|
<input value={value} css={STYLES_CHECKBOX_INPUT} type="checkbox" {...props} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2022-06-20 13:12:08 +03:00
|
|
|
const background_image = `${Constants.gateways.ipfs}/bafybeiddgkvf5ta6y5b7wamrxl33mtst4detegleblw4gfduhwm3sdwdra`;
|
2021-07-27 19:51:39 +03:00
|
|
|
|
|
|
|
const STYLES_ROOT = css`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1rem;
|
|
|
|
|
|
|
|
min-height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
position: absolute;
|
|
|
|
overflow: hidden;
|
|
|
|
background-image: url(${background_image});
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
|
|
|
`;
|
|
|
|
|
2021-12-13 20:21:43 +03:00
|
|
|
const STYLES_MIDDLE = (theme) => css`
|
2021-07-27 19:51:39 +03:00
|
|
|
position: relative;
|
|
|
|
min-height: 10%;
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
text-align: left;
|
|
|
|
padding: 24px;
|
2021-12-13 20:21:43 +03:00
|
|
|
@media (max-width: ${theme.sizes.mobile}px) {
|
|
|
|
padding: 24px 16px;
|
|
|
|
//NOTE(amine): additional scroll space for mobile
|
|
|
|
padding-bottom: 64px;
|
|
|
|
}
|
2021-07-27 19:51:39 +03:00
|
|
|
`;
|
2021-07-29 22:10:47 +03:00
|
|
|
|
|
|
|
const WithCustomWrapper = (Component) => (props) => {
|
|
|
|
return (
|
2021-07-27 19:51:39 +03:00
|
|
|
<WebsitePrototypeWrapper>
|
2021-11-11 20:34:42 +03:00
|
|
|
<AuthWrapper css={STYLES_ROOT} isMobile={props.isMobile}>
|
2021-07-27 19:51:39 +03:00
|
|
|
<div css={STYLES_MIDDLE}>
|
|
|
|
<Component {...props} />
|
|
|
|
</div>
|
2021-11-11 20:34:42 +03:00
|
|
|
</AuthWrapper>
|
2021-07-27 19:51:39 +03:00
|
|
|
</WebsitePrototypeWrapper>
|
|
|
|
);
|
2021-07-29 22:10:47 +03:00
|
|
|
};
|
2021-07-27 19:51:39 +03:00
|
|
|
|
|
|
|
export default WithCustomWrapper(SceneSurvey);
|