Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 998fbb3

Browse filesBrowse files
committed
Updates
1 parent a41c8d0 commit 998fbb3
Copy full SHA for 998fbb3

File tree

Expand file treeCollapse file tree

4 files changed

+11
-45
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+11
-45
lines changed
Open diff view settings
Collapse file

‎pages/dashboard.tsx‎

Copy file name to clipboardExpand all lines: pages/dashboard.tsx
+7-15Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
import SideBar from "@components/SideBar";
22
import NewProject from "@components/NewProject";
3-
import {
4-
Box,
5-
Button,
6-
Flex,
7-
Image,
8-
Input,
9-
Spinner,
10-
Text,
11-
} from "@pankod/refine-chakra-ui";
3+
import { Box, Flex } from "@pankod/refine-chakra-ui";
124
import { rise } from "animations";
13-
import { Suspense, useEffect, useState } from "react";
14-
import { teams } from "src/utility";
15-
import { Plus } from "react-feather";
5+
import { useState } from "react";
166
import { AnimatePresence, motion } from "framer-motion";
177
import ExtraBold from "@components/ExtraBold";
18-
import Bold from "@components/Bold";
19-
import { Models } from "@pankod/refine-appwrite";
20-
import ProjectCard from "@components/ProjectsCard";
218
import ProjectsList from "@components/ProjectsList";
9+
import Head from "next/head";
2210

2311
const DashBoard = () => {
2412
const date = new Date();
@@ -47,9 +35,13 @@ const DashBoard = () => {
4735

4836
return (
4937
<Flex width={"100vw"} height="100vh">
38+
<Head>
39+
<title>Your dashboard - planetary</title>
40+
</Head>
5041
<SideBar current="dashboard" />
5142
<Flex
5243
direction="column"
44+
marginTop={5}
5345
paddingLeft={{ sidebar_md: 12, sm: 8, base: 4 }}
5446
paddingRight={{ sidebar_md: 12, sm: 0, base: 4 }}
5547
width={{
Collapse file

‎pages/project/[id]/index.tsx‎

Copy file name to clipboardExpand all lines: pages/project/[id]/index.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const DashBoard: React.FC<{}> = () => {
111111
{loading ? (
112112
<Flex
113113
width="full"
114-
height="full"
114+
height="50vh"
115115
justifyContent={"center"}
116116
alignItems="center"
117117
>
Collapse file

‎src/components/ProjectsCard.tsx‎

Copy file name to clipboardExpand all lines: src/components/ProjectsCard.tsx
+1-25Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({
4444
exit={{ opacity: 0, transform: "translateY(30px)" }}
4545
transition={{ duration: "0.3" }}
4646
>
47-
{/* <Flex>
48-
{p.members.map((m: any, i: number) => {
49-
return (
50-
<Image
51-
key={m.userName}
52-
borderColor="#2E3440"
53-
transform={`translateX(-${8 * i}px)`}
54-
borderWidth={2}
55-
borderStyle="solid"
56-
src={
57-
storage.getFilePreview(
58-
"63dfd4b2bf3364da5f0c",
59-
m.userName
60-
).href
61-
}
62-
width={10}
63-
borderRadius="full"
64-
alt="User profile"
65-
/>
66-
);
67-
})}
68-
</Flex> */}
69-
<ExtraBold marginTop={5} fontSize={24}>
70-
{name}
71-
</ExtraBold>
47+
<ExtraBold fontSize={24}>{name}</ExtraBold>
7248
<Text color="gray.600" marginTop={2} marginBottom={4}>
7349
{data?.data.description}
7450
</Text>
Collapse file

‎src/components/ProjectsList.tsx‎

Copy file name to clipboardExpand all lines: src/components/ProjectsList.tsx
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const ProjectsList: React.FC<ProjectsListProps> = ({
4545
fetchTeams();
4646

4747
set_refresh(false);
48-
}, [refresh]);
48+
}, [refresh, set_refresh]);
4949

5050
return (
5151
<Box width="full">
@@ -68,7 +68,6 @@ const ProjectsList: React.FC<ProjectsListProps> = ({
6868
animation={`${rise} 500ms ease-in-out forwards`}
6969
_placeholder={{ color: "gray.500" }}
7070
/>
71-
{/* Create new project button */}
7271
<Button
7372
bg="#2E3440"
7473
color="#d2d8f3"
@@ -83,7 +82,6 @@ const ProjectsList: React.FC<ProjectsListProps> = ({
8382
>
8483
Create new project
8584
</Button>
86-
{/* Plus sign on small screens */}
8785
<Button
8886
bg="#2E3440"
8987
color="#d2d8f3"
@@ -109,7 +107,7 @@ const ProjectsList: React.FC<ProjectsListProps> = ({
109107
Recent Projects
110108
</Bold>
111109

112-
<Flex marginTop={4} gap={6} wrap="wrap">
110+
<Flex marginTop={4} gap={6} wrap="wrap" paddingBottom={10}>
113111
<AnimatePresence>
114112
{user_teams ? (
115113
user_teams.map((team) => {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.