anyone-oslo/pages

View on GitHub
app/javascript/components/ImageEditor.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function ImageEditor has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function ImageEditor(props: Props) {
  const [cropState, dispatch, croppedImage] = useCrop(props.image);
  const [locale, setLocale] = useState(props.locale);
  const [localizations, setLocalizations] = useState({
    caption: props.image.caption || {},
Severity: Minor
Found in app/javascript/components/ImageEditor.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status