Adds new Checkbox and CheckboxField components (#37665)
This commit is contained in:
1 parent
a75790143c
commit
a7a33ef6bc
17 files changed
+344
-50
No files matched your search
@@ -7,7 +7,7 @@ import { useParams } from 'react-router';
|
||||
|
||||
import Overlay from 'react-overlays/esm/Overlay';
|
||||
|
||||
import { PlainToggleField } from '@/mastodon/components/form_fields/toggle_field';
|
||||
import { Toggle } from '@/mastodon/components/form_fields';
|
||||
import { Icon } from '@/mastodon/components/icon';
|
||||
import KeyboardArrowDownIcon from '@/material-icons/400-24px/keyboard_arrow_down.svg?react';
|
||||
|
||||
@@ -119,7 +119,7 @@ const FilterDropdown: FC = () => {
|
||||
defaultMessage='Show replies'
|
||||
/>
|
||||
</label>
|
||||
<PlainToggleField
|
||||
<Toggle
|
||||
name='replies'
|
||||
checked={replies}
|
||||
onChange={handleChange}
|
||||
@@ -132,7 +132,7 @@ const FilterDropdown: FC = () => {
|
||||
defaultMessage='Show boosts'
|
||||
/>
|
||||
</label>
|
||||
<PlainToggleField
|
||||
<Toggle
|
||||
name='boosts'
|
||||
checked={boosts}
|
||||
onChange={handleChange}
|
||||
|
||||
@@ -16,7 +16,7 @@ import type {
|
||||
import { Button } from 'mastodon/components/button';
|
||||
import { Column } from 'mastodon/components/column';
|
||||
import { ColumnHeader } from 'mastodon/components/column_header';
|
||||
import { TextAreaField, ToggleField } from 'mastodon/components/form_fields';
|
||||
import { CheckboxField, TextAreaField } from 'mastodon/components/form_fields';
|
||||
import { TextInputField } from 'mastodon/components/form_fields/text_input_field';
|
||||
import { LoadingIndicator } from 'mastodon/components/loading_indicator';
|
||||
import {
|
||||
@@ -194,7 +194,7 @@ const CollectionSettings: React.FC<{
|
||||
</div>
|
||||
|
||||
<div className='fields-group'>
|
||||
<ToggleField
|
||||
<CheckboxField
|
||||
label={
|
||||
<FormattedMessage
|
||||
id='collections.mark_as_sensitive'
|
||||
|
||||
Reference in new issue
Block a user