glitch-soc/mastodon

View on GitHub
app/javascript/flavours/glitch/features/compose/components/sensitive_button.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function SensitiveButton has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const SensitiveButton = () => {
  const intl = useIntl();

  const spoilersAlwaysOn = useAppSelector((state) => state.getIn(['local_settings', 'always_show_spoilers_field']));
  const spoilerText = useAppSelector((state) => state.getIn(['compose', 'spoiler_text']));

    There are no issues that match your filters.

    Category
    Status