Skip to content

Commit

Permalink
feat(select): wrap tag select
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariaspect committed Sep 13, 2023
1 parent c77cac6 commit 12a3480
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions client/src/components/atoms/SelectTagBox.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
import React from "react";
import { useUserTag } from "@/services/user-tag";
import { TagSelect_temp } from "@/components/atoms";
import { TagSelect } from "./TagSelect";

interface Props {
selected: string[];
onChange: React.ChangeEventHandler<HTMLSelectElement>;
onChange: (selection: string[]) => void;
}

export const SelectTagBox: React.FC<Props> = ({ selected, onChange }) => {
export const SelectTagBox: React.FC<Props> = ({ onChange }) => {
const { tags } = useUserTag(state => ({
tags: state.userTags,
}));

return (
<>
<TagSelect_temp tags={tags} />
</>
);
return <TagSelect tags={tags} onChange={onChange} />;
};

0 comments on commit 12a3480

Please sign in to comment.