Skip to content

Commit

Permalink
Merge pull request #55 from deepraj21/main
Browse files Browse the repository at this point in the history
Updated Profile and EditProfile section
  • Loading branch information
deepraj21 authored Oct 18, 2024
2 parents 1639521 + 50ef1dc commit 9368408
Show file tree
Hide file tree
Showing 15 changed files with 1,022 additions and 1,283 deletions.
272 changes: 0 additions & 272 deletions client/dist/assets/index-9KsGJqp-.js

This file was deleted.

280 changes: 280 additions & 0 deletions client/dist/assets/index-BVs10sFn.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion client/dist/assets/index-BaUmUz5n.css

This file was deleted.

1 change: 1 addition & 0 deletions client/dist/assets/index-C_VlOH-m.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" type="image" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DevHub</title>
<script type="module" crossorigin src="/assets/index-9KsGJqp-.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BaUmUz5n.css">
<script type="module" crossorigin src="/assets/index-BVs10sFn.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C_VlOH-m.css">
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 2 additions & 0 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Login from './pages/Login';
import Home from './pages/Home';
import Profile from './pages/Profile';
import { Toaster } from "@/components/ui/sonner";
import EditProfileForm from './pages/EditProfileForm';

const App = () => {

Expand All @@ -17,6 +18,7 @@ const App = () => {
<Route path="/signup" element={<Signup />} />
<Route path="/login" element={<Login />} />
<Route path="/home" element={<Home />} />
<Route path="/settings" element={<EditProfileForm />} />
<Route path="/u/:username" element={<Profile />} />
<Route path="*" element={<div>404</div>} />
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const Chat: React.FC = () => {
<AvatarImage src="/ai-avatar.png" alt="dh" />
<AvatarFallback>dh</AvatarFallback>
</Avatar>
<div className="flex-grow mt-2" style={{ maxWidth: '70%' }}> {/* Set maxWidth to 70% */}
<div className="flex-grow mt-2" style={{ maxWidth: '70%' }}>
{message.isLoading ? (
<>
<Skeleton className="h-4 w-[250px]" />
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const SkeletonFour = () => {
Just code in Vanilla Javascript
</p>
<p className="border border-red-500 bg-red-100 dark:bg-red-900/20 text-red-600 text-xs rounded-full px-2 py-0.5 mt-4">
Developer 🧑🏻‍💻
Developer
</p>
</motion.div>
<motion.div className="h-full relative z-20 w-1/3 rounded-2xl bg-white p-4 dark:bg-black dark:border-white/[0.1] border border-neutral-200 flex flex-col items-center justify-center">
Expand Down Expand Up @@ -227,7 +227,7 @@ const SkeletonFour = () => {
I love angular, RSC, and Redux.
</p>
<p className="border border-orange-500 bg-orange-100 dark:bg-orange-900/20 text-orange-600 text-xs rounded-full px-2 py-0.5 mt-4">
Backend 🚀
Backend
</p>
</motion.div>
</motion.div>
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/MobileSidebar/MobileSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const MobileSidebar = () => {
<div className="w-full flex-1"></div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="secondary" size="icon" className="rounded-full">
<CircleUser className="h-5 w-5" />
</Button>
{/* <Button variant="secondary" size="icon" className="rounded-full"> */}
<CircleUser className="h-8 w-8" />
{/* </Button> */}
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuLabel>My Account</DropdownMenuLabel>
Expand Down
4 changes: 2 additions & 2 deletions client/src/lib/userSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const userSlice = createSlice({
initialState,
reducers: {
setUser: (state, action: PayloadAction<UserState>) => {
return { ...state, ...action.payload };
return { ...state, ...action.payload };
},
setUsername(state, action: PayloadAction<string | null>) {
state.username = action.payload;
Expand All @@ -33,4 +33,4 @@ const userSlice = createSlice({

export const { setUser, setUsername, setFriends, setFriendStatus } = userSlice.actions;
export default userSlice.reducer;
export type { UserState };
export type { UserState };
187 changes: 0 additions & 187 deletions client/src/pages/EditForm.tsx

This file was deleted.

Loading

0 comments on commit 9368408

Please sign in to comment.