style: onboarding screens (#1412)

* style: new onboarding screens

* chore: onboarding tour screens

* fix: build error

* fix: build errors

* style: default layout background

* chor: update user auth hook logic, style: new onboarding screens

* fix: component structure

* chore: tab responsiveness added

* fix: redirection logic

* style: welcome screens responsiveness

* chore: update workspace url input field

* style: mobile responsiveness added

* chore: complete onboarding workflow

* style: create workspace page design update

* style: workspace invitations page design update

* chore: update steps logic

* fix: step change logic

* style: tour steps
This commit is contained in:
Aaryan Khandelwal 2023-07-12 19:55:08 +05:30 committed by GitHub
parent 26f0e9da00
commit a1b09fcbc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 1542 additions and 1080 deletions

View file

@ -1,10 +1,10 @@
import useSWR from "swr";
import { useRouter } from "next/router";
// types
import { IWorkspace } from "types";
import useSWR from "swr";
// services
import workspaceService from "services/workspace.service";
// constants
// fetch-keys
import { USER_WORKSPACES } from "constants/fetch-keys";
const useWorkspaces = () => {
@ -12,11 +12,7 @@ const useWorkspaces = () => {
const router = useRouter();
const { workspaceSlug } = router.query;
// API to fetch user information
const {
data = [],
error,
mutate,
} = useSWR<IWorkspace[]>(USER_WORKSPACES, () => workspaceService.userWorkspaces());
const { data, error, mutate } = useSWR(USER_WORKSPACES, () => workspaceService.userWorkspaces());
// active workspace
const activeWorkspace = data?.find((w) => w.slug === workspaceSlug);