Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: cs-308-2023 <[email protected]>
  • Loading branch information
ADI-ROXX committed Jan 27, 2025
1 parent a245822 commit 81f03d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/plexus/src/zoom/MiniMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ function getViewTransform(props: TProps, displaySize: { width: number; height: n
};
}

function getClassNames(props: TProps) {
function getClassNames(props: { className: string; classNamePrefix: string }) {
const { className, classNamePrefix } = props;
const base = `${classNamePrefix || 'plexus'}-MiniMap`;
const base = `${classNamePrefix}-MiniMap`;
return {
root: `${base} ${className || ''}`,
root: `${base} ${className}`,
item: `${base}--item`,
map: `${base}--map`,
mapActive: `${base}--mapActive`,
Expand All @@ -82,9 +82,9 @@ function getClassNames(props: TProps) {
}

export function MiniMap({ className = '', classNamePrefix = 'plexus', ...props }: TProps) {
const css = getClassNames({ className, classNamePrefix, ...props });
const mapSize = getMapSize({ className, classNamePrefix, ...props });
const activeXform = getViewTransform({ className, classNamePrefix, ...props }, mapSize);
const css = getClassNames({ className, classNamePrefix });
const mapSize = getMapSize({ ...props });
const activeXform = getViewTransform({ ...props }, mapSize);
return (
<div className={css.root}>
<div className={`${css.item} ${css.map}`} style={mapSize}>
Expand Down

0 comments on commit 81f03d8

Please sign in to comment.