baublet/w8mngr

View on GitHub
client/components/Button/DeleteButton.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function DeleteButton has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function DeleteButton(props: GhostButtonProps) {
  const { onClick, ...newProps } = props,
    newOnclick = (e?: any) => {
      e?.preventDefault();
      if (window.confirm("Are you sure?")) {
Severity: Minor
Found in client/components/Button/DeleteButton.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status