Skip to content

Commit

Permalink
correct some erros
Browse files Browse the repository at this point in the history
  • Loading branch information
Afonso-santos committed Jul 12, 2023
1 parent 631deb8 commit 455afe0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/app/components/LectureForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function LectureForm({ id }) {
)
);
});
}, [events]);
}, [events, fetchData]);

const [filteredNinjas, setFilteredNinjas] = useState([]);
const handleEventChange = useCallback(
Expand Down
4 changes: 1 addition & 3 deletions apps/app/components/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ import { EUser, getNinjasAsAdmin, updateGuardianAsAdmin } from "bokkenjs";
import Link from "next/link";
import { getIcon } from "~/lib/utils";


const { TabPane } = Tabs;

const { Title,Text } = Typography;
const { Title, Text } = Typography;

interface Props {
id: string;
Expand Down Expand Up @@ -209,7 +208,6 @@ function Profile({ id, role }: Props) {
</Col>
</Space>
</Row>
z
<Tabs defaultActiveKey="1" centered>
<TabPane tab="Eventos" key="1">
<Timeline mode="alternate">
Expand Down
4 changes: 2 additions & 2 deletions apps/app/pages/admin/lectures/presences/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function Presences() {
"Não foi possível atualizar os dados da sessão"
);
});
}, []);
}, [data, selectedLectures]);

useEffect(() => {
api
Expand Down Expand Up @@ -125,7 +125,7 @@ export default function Presences() {

useEffect(() => {
generateData();
}, [selectedLectures]);
});

selectedLectures.map((lecture: any) => {
if (lecture.attendance == null) {
Expand Down

0 comments on commit 455afe0

Please sign in to comment.