Skip to content

Commit

Permalink
fix lint errors in Sidebar.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sickelap committed Dec 8, 2024
1 parent 2b33c68 commit 460cb60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/lightbox/PersonDetailComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Props = {
isPublic: boolean;
setFaceLocation: (face: any) => void;
onPersonEdit: (faceId: string, faceUrl: string) => void;
notThisPerson: (faceId: string) => void;
notThisPerson: (faceId: number) => void;
};

export function PersonDetail({ person, isPublic, setFaceLocation, onPersonEdit, notThisPerson }: Props) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/lightbox/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export function Sidebar(props: Props) {
const dispatch = useAppDispatch();
const [personEditOpen, setPersonEditOpen] = useState(false);
const [selectedFaces, setSelectedFaces] = useState<any[]>([]);
const { isPublic, closeSidepanel, setFaceLocation } = props;
const { isPublic, closeSidepanel, setFaceLocation, id } = props;

const photoDetail: PhotoType = useAppSelector(store => store.photoDetails.photoDetails[props.id]);
const photoDetail: PhotoType = useAppSelector(store => store.photoDetails.photoDetails[id]);
const theme = useMantineTheme();
const { colorScheme } = useMantineColorScheme();

const notThisPerson = faceId => {
const notThisPerson = (faceId: number) => {
const ids = [faceId];
dispatch(api.endpoints.setFacesPersonLabel.initiate({ faceIds: ids, personName: "Unknown - Other" }));
notification.removeFacesFromPerson(ids.length);
Expand Down

0 comments on commit 460cb60

Please sign in to comment.