Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions src/client/components/AuthorizationPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,23 @@ const LoginTitle = styled(RcTypography)`
function LoginPanel({
onLogin,
}) {
const content = window.clientConfig.isBeta ? (
<RcTypography color="secondary" display="block">
Warning: This service is at beta stage. Please click "Advanced" when seeing a "Google hasn't verified this app" page at Google Authorization. Then select "See all responses" and "See all Forms" for access.
</RcTypography>
) : (
<LoginTitle
color="textPrimary"
variant="subheading1"
paragraph
display="block"
>
To begin, please connect your Google account.
</LoginTitle>
);
return (
<Fragment>
<LoginTitle
color="textPrimary"
variant="subheading1"
paragraph
display="block"
>
To begin, please connect your Google account.
</LoginTitle>
{content}
<br />
<RcButton onClick={onLogin}>
Connect to Google Forms
Expand Down
1 change: 1 addition & 0 deletions src/server/routes/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function setup(req, res) {
authRevokeUri: `${process.env.APP_SERVER}${constants.route.forClient.REVOKE_TOKEN}`,
subscribeUri : `${process.env.APP_SERVER}${constants.route.forClient.SUBSCRIBE}`,
segmentKey: process.env.SEGMENT_KEY,
isBeta: process.env.BETA,
},
});
}
Expand Down