Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardasB committed Dec 12, 2024
1 parent 14a6e8c commit 92eaecf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
9 changes: 0 additions & 9 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 0 additions & 27 deletions ui/appui-react/src/appui-react/statusfields/SnapMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,6 @@ const allSnapModeFieldEntries: SnapModeFieldEntry[] = [
},
];

<<<<<<< HEAD
/** Return icon for a specific snapMode. */
const getSnapModeIcon = (snapMode: number) => {
// Get all the modes present in the bitmask.
const modes: SnapModeFieldEntry[] = allSnapModeFieldEntries.filter(
(entry) => {
return (entry.value & snapMode) === entry.value;
}
);

return (
// eslint-disable-next-line deprecation/deprecation
<Icon
iconSpec={modes.length === 1 ? modes[0].iconSpec : snapModeKeypoint}
/>
);
};

=======
>>>>>>> 594690caa (Remove `@bentley/icons-generic` from AppUI packages (#1153))
/** Defines properties supported by the SnapMode Field Component. */
// eslint-disable-next-line deprecation/deprecation
interface SnapModeFieldProps extends CommonProps {
Expand Down Expand Up @@ -149,14 +129,7 @@ export function SnapModeField(props: SnapModeFieldProps) {
UiFramework.setAccudrawSnapMode(entry.value);
}}
isActive={(snapMode & entry.value) === entry.value}
<<<<<<< HEAD
icon={
// eslint-disable-next-line deprecation/deprecation
<Icon className={`icon`} iconSpec={entry.iconSpec} />
}
=======
icon={<Icon>{entry.icon}</Icon>}
>>>>>>> 594690caa (Remove `@bentley/icons-generic` from AppUI packages (#1153))
>
{translate(entry.labelKey)}
</Snap>
Expand Down

0 comments on commit 92eaecf

Please sign in to comment.