Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelsolorio committed Jan 31, 2025
1 parent 76d66d6 commit c9cdece
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,8 @@ interface RGB {

type ColorMode = 'hsl' | 'rgb';

interface Position {
x: number;
y: number;
}

interface DragItem {
index: number;
type: 'column';
}

const STORAGE_KEY = 'contrast-grid-colors';

const getContrastClass = (ratio: number): string => {
if (ratio >= 7) return 'passing-aaa';
if (ratio >= 4.5) return 'passing-aa';
return 'failing';
};

const getContrastLabel = (ratio: number): JSX.Element | string => {
if (ratio >= 7) return 'AAA';
if (ratio >= 4.5) return 'AA';
Expand Down Expand Up @@ -434,8 +418,6 @@ const App: React.FC = () => {
return entry.label ? `${entry.color}, ${entry.label}` : entry.color;
};

const gridTemplateColumns = `300px repeat(${foregroundColors.length}, minmax(120px, 1fr))`;

const handleDragStart = (e: React.DragEvent, index: number, type: 'column' | 'row') => {
e.stopPropagation();
if (type === 'column') {
Expand Down

0 comments on commit c9cdece

Please sign in to comment.