Skip to content

Commit

Permalink
fix: redirect card school add id a localstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
TI JONNY committed Jul 17, 2024
1 parent 69310b4 commit 260ba58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/Card/CardTs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Column, Padding, Row } from "../../../Styles/styles";
import IconClassroom from "./../../../Assets/images/ts_card.svg";
import { Container } from "./style";
import { useNavigate } from "react-router-dom";
import { idTs } from "../../../Services/localstorage";



Expand All @@ -26,7 +27,7 @@ const CardTs = ({
const history = useNavigate()
return (
<>
<Container className="card" onClick={() => { history("/turma") }}>
<Container className="card" onClick={() => { idTs(id.toString()); history("/turma"); }}>
<Row id="space-between">
<Row >
<div className={`boxQuantity`}>
Expand Down

0 comments on commit 260ba58

Please # to comment.