Skip to content

Commit

Permalink
fix: removed unecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Jan 27, 2025
1 parent a9caa52 commit 9445265
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions app/configurator/components/configurator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ import { replaceLinks } from "@/utils/ui-strings";
import useEvent from "@/utils/use-event";
import { useMutate } from "@/utils/use-fetch-data";

export const BackContainer = (props: React.PropsWithChildren<{ sx?: SxProps }>) => {
export const BackContainer = (
props: React.PropsWithChildren<{ sx?: SxProps }>
) => {
const { children, sx } = props;
return (
<Box
Expand All @@ -103,7 +105,7 @@ export const BackContainer = (props: React.PropsWithChildren<{ sx?: SxProps }>)
);
};

export const BackButton = ({
const BackButton = ({
children,
onClick,
...props
Expand Down
6 changes: 3 additions & 3 deletions app/login/components/color-palettes/color-palette-types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const ColorPickerMenu = dynamic(
{ ssr: false }
);

export const CATEGORICAL_MAX_ALLOWED_COLORS = 26;
export const DIVERGING_MAX_ALLOWED_COLORS = 3;
const CATEGORICAL_MAX_ALLOWED_COLORS = 26;
const DIVERGING_MAX_ALLOWED_COLORS = 3;

const useStyles = makeStyles({
addColorButton: {
Expand Down Expand Up @@ -254,7 +254,7 @@ type ColorSelectionRowProps = {
onRemove?: (id: string) => void;
} & ColorItem;

export const ColorSelectionRow = (props: ColorSelectionRowProps) => {
const ColorSelectionRow = (props: ColorSelectionRowProps) => {
const { id, color, colorValues, onRemove, onUpdate } = props;
const classes = useStyles();

Expand Down
2 changes: 1 addition & 1 deletion app/palettes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const categoricalPalettes: Array<CategoricalPalette> = [

export const DEFAULT_CATEGORICAL_PALETTE_ID = categoricalPalettes[0].value;

export type Palette<T> = {
type Palette<T> = {
label: string;
value: T;
interpolator: (t: number) => string;
Expand Down

0 comments on commit 9445265

Please sign in to comment.