Skip to content

Commit

Permalink
feat: 🎸 Login screen default data hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsukoro1 committed Aug 22, 2024
1 parent 61df5ba commit 4826ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Input from "@/shared/components/Form/Input";
import { useSelector } from "@/store";
import { useNavigate } from "@solidjs/router";
import { FiCheck, FiLock } from "solid-icons/fi";
import { createSignal, For, onMount, type Component, Show } from "solid-js";
import { createSignal, For, onMount, type Component, Show, createEffect } from "solid-js";
import { Motion, Presence } from "solid-motionone";
import toast from "solid-toast";

Expand All @@ -19,7 +19,7 @@ const Login: Component = () => {
const [t] = useI18n();
const stateService = useSelector((state) => state.stateService);

onMount(async () => {
createEffect(async () => {
const data = await getCompanies();
console.log(data);
setCompanies(data);
Expand Down

0 comments on commit 4826ff1

Please sign in to comment.