kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix a few visual issues
rodzic
a58069a123
commit
d644e3cf25
|
@ -95,7 +95,7 @@ const OtherActionsStep = ({ account }: IOtherActionsStep) => {
|
||||||
<Stack space={4}>
|
<Stack space={4}>
|
||||||
{renderSelectedStatuses()}
|
{renderSelectedStatuses()}
|
||||||
|
|
||||||
{!features.reportMultipleStatuses && (
|
{features.reportMultipleStatuses && (
|
||||||
<Stack space={2}>
|
<Stack space={2}>
|
||||||
<Text size='xl' weight='semibold'>Include other statuses?</Text>
|
<Text size='xl' weight='semibold'>Include other statuses?</Text>
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ const ReasonStep = (_props: IReasonStep) => {
|
||||||
const comment = useAppSelector((state) => state.reports.getIn(['new', 'comment']) as string);
|
const comment = useAppSelector((state) => state.reports.getIn(['new', 'comment']) as string);
|
||||||
const rules = useAppSelector((state) => state.rules.items);
|
const rules = useAppSelector((state) => state.rules.items);
|
||||||
const ruleId = useAppSelector((state) => state.reports.getIn(['new', 'rule_id']) as boolean);
|
const ruleId = useAppSelector((state) => state.reports.getIn(['new', 'rule_id']) as boolean);
|
||||||
|
const shouldRequireRule = rules.length > 0;
|
||||||
|
|
||||||
const renderSelectedStatuses = useCallback(() => {
|
const renderSelectedStatuses = useCallback(() => {
|
||||||
switch (selectedStatusIds.size) {
|
switch (selectedStatusIds.size) {
|
||||||
|
@ -112,6 +113,7 @@ const ReasonStep = (_props: IReasonStep) => {
|
||||||
<Stack space={4}>
|
<Stack space={4}>
|
||||||
{renderSelectedStatuses()}
|
{renderSelectedStatuses()}
|
||||||
|
|
||||||
|
{shouldRequireRule && (
|
||||||
<Stack space={2}>
|
<Stack space={2}>
|
||||||
<Text size='xl' weight='semibold'>Reason for reporting</Text>
|
<Text size='xl' weight='semibold'>Reason for reporting</Text>
|
||||||
|
|
||||||
|
@ -175,6 +177,7 @@ const ReasonStep = (_props: IReasonStep) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
)}
|
||||||
|
|
||||||
<FormGroup labelText={intl.formatMessage(messages.placeholder)}>
|
<FormGroup labelText={intl.formatMessage(messages.placeholder)}>
|
||||||
<Textarea
|
<Textarea
|
||||||
|
|
Ładowanie…
Reference in New Issue