Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMHasperhoven committed Nov 15, 2024
1 parent f4f870c commit 9946b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/Slider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { Text } from '../Text';
import * as RadixSlider from '@radix-ui/react-slider';
import { ThemeColor, getThemeColorClass, getThemeColor } from '../utils/color';
import { ThemeColor, getThemeColorClass } from '../utils/color';
import cn from 'clsx';

interface SliderProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/utils/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const COLOR_CLASS_MAP: Record<ThemeColor, [string, string]> = {
* returns the tailwind classes for text, background, and outline.
*/
export const getThemeColorClass = (color: ThemeColor) => {
const mapped = COLOR_CLASS_MAP[color] as [string, string, string] | undefined;
const mapped = COLOR_CLASS_MAP[color] as [string, string] | undefined;
if (!mapped) {
throw new Error(`Color "${color}" does not exist`);
}
Expand Down

0 comments on commit 9946b86

Please sign in to comment.