-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta' into button-disabled-improve-styles
- Loading branch information
Showing
52 changed files
with
945 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, {useState} from 'react'; | ||
import ToggleSwitch from 'js/components/common/toggleSwitch'; | ||
import envStore from 'js/envStore'; | ||
import {HELP_ARTICLE_ANON_SUBMISSIONS_URL} from 'js/constants'; | ||
import Icon from 'js/components/common/icon'; | ||
import styles from './anonymousSubmission.module.scss'; | ||
|
||
interface AnonymousSubmissionProps { | ||
checked: boolean; | ||
onChange: (isChecked: boolean) => void; | ||
} | ||
|
||
export default function AnonymousSubmission(props: AnonymousSubmissionProps) { | ||
return ( | ||
<div className={styles.root}> | ||
<ToggleSwitch | ||
checked={props.checked} | ||
onChange={props.onChange} | ||
label={t( | ||
'Allow web submissions to this form without a username and password' | ||
)} | ||
/> | ||
<a | ||
href={envStore.data.support_url + HELP_ARTICLE_ANON_SUBMISSIONS_URL} | ||
className='right-tooltip wrapped-tooltip' | ||
target='_blank' | ||
data-tip={t( | ||
'Allow anyone to see this form and add submissions. Click the icon to learn more.' | ||
)} | ||
> | ||
<Icon size='s' name='help' color='storm' /> | ||
</a> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@use 'scss/sizes'; | ||
@use '~kobo-common/src/styles/colors'; | ||
|
||
.root { | ||
display: flex; | ||
padding-bottom: sizes.$x12; | ||
padding-top: sizes.$x8; | ||
border-bottom: 1px solid colors.$kobo-gray-96; | ||
} | ||
|
||
a { | ||
margin-left: sizes.$x8; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.