Skip to content

Commit

Permalink
feat: MET-1963 update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed Mar 22, 2024
1 parent ee07fe1 commit 73e2ee3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/DrepDetail/index.tsx
Expand Up @@ -69,9 +69,6 @@ const DrepDetail = () => {
const history = useHistory();

const [typeVote, setTypeVote] = useState("ALL");
const handleChange = (event) => {
setTypeVote(event.target.value);
};
const { data, loading } = useFetch<DrepOverview>(API.DREP_OVERVIEW.replace(":drepId", drepId));
const { data: dataChard, loading: loadingChard } = useFetch<DrepOverviewChart>(
`${API.DREP_OVERVIEW_CHART.replace(":drepId", drepId)}?govActionType=${typeVote}`
Expand Down Expand Up @@ -147,7 +144,9 @@ const DrepDetail = () => {
</TitleCard>
<StyledSelect
value={typeVote}
onChange={handleChange}
onChange={(event) => {
setTypeVote(event.target?.value as string);
}}
size="small"
IconComponent={DropdownIcon}
sx={{
Expand Down

0 comments on commit 73e2ee3

Please sign in to comment.