Skip to content

Commit 9368408

Browse files
authored
Merge pull request #55 from deepraj21/main
Updated Profile and EditProfile section
2 parents 1639521 + 50ef1dc commit 9368408

File tree

15 files changed

+1022
-1283
lines changed

15 files changed

+1022
-1283
lines changed

client/dist/assets/index-9KsGJqp-.js

Lines changed: 0 additions & 272 deletions
This file was deleted.

client/dist/assets/index-BVs10sFn.js

Lines changed: 280 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/dist/assets/index-BaUmUz5n.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/dist/assets/index-C_VlOH-m.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<link rel="icon" type="image" href="/logo.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>DevHub</title>
8-
<script type="module" crossorigin src="/assets/index-9KsGJqp-.js"></script>
9-
<link rel="stylesheet" crossorigin href="/assets/index-BaUmUz5n.css">
8+
<script type="module" crossorigin src="/assets/index-BVs10sFn.js"></script>
9+
<link rel="stylesheet" crossorigin href="/assets/index-C_VlOH-m.css">
1010
</head>
1111
<body>
1212
<div id="root"></div>

client/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Login from './pages/Login';
66
import Home from './pages/Home';
77
import Profile from './pages/Profile';
88
import { Toaster } from "@/components/ui/sonner";
9+
import EditProfileForm from './pages/EditProfileForm';
910

1011
const App = () => {
1112

@@ -17,6 +18,7 @@ const App = () => {
1718
<Route path="/signup" element={<Signup />} />
1819
<Route path="/login" element={<Login />} />
1920
<Route path="/home" element={<Home />} />
21+
<Route path="/settings" element={<EditProfileForm />} />
2022
<Route path="/u/:username" element={<Profile />} />
2123
<Route path="*" element={<div>404</div>} />
2224
</Routes>

client/src/components/Chat/Chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const Chat: React.FC = () => {
127127
<AvatarImage src="/ai-avatar.png" alt="dh" />
128128
<AvatarFallback>dh</AvatarFallback>
129129
</Avatar>
130-
<div className="flex-grow mt-2" style={{ maxWidth: '70%' }}> {/* Set maxWidth to 70% */}
130+
<div className="flex-grow mt-2" style={{ maxWidth: '70%' }}>
131131
{message.isLoading ? (
132132
<>
133133
<Skeleton className="h-4 w-[250px]" />

client/src/components/Hero/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const SkeletonFour = () => {
194194
Just code in Vanilla Javascript
195195
</p>
196196
<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">
197-
Developer 🧑🏻‍💻
197+
Developer
198198
</p>
199199
</motion.div>
200200
<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">
@@ -227,7 +227,7 @@ const SkeletonFour = () => {
227227
I love angular, RSC, and Redux.
228228
</p>
229229
<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">
230-
Backend 🚀
230+
Backend
231231
</p>
232232
</motion.div>
233233
</motion.div>

client/src/components/MobileSidebar/MobileSidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ const MobileSidebar = () => {
4545
<div className="w-full flex-1"></div>
4646
<DropdownMenu>
4747
<DropdownMenuTrigger asChild>
48-
<Button variant="secondary" size="icon" className="rounded-full">
49-
<CircleUser className="h-5 w-5" />
50-
</Button>
48+
{/* <Button variant="secondary" size="icon" className="rounded-full"> */}
49+
<CircleUser className="h-8 w-8" />
50+
{/* </Button> */}
5151
</DropdownMenuTrigger>
5252
<DropdownMenuContent align="end">
5353
<DropdownMenuLabel>My Account</DropdownMenuLabel>

client/src/lib/userSlice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const userSlice = createSlice({
1717
initialState,
1818
reducers: {
1919
setUser: (state, action: PayloadAction<UserState>) => {
20-
return { ...state, ...action.payload };
20+
return { ...state, ...action.payload };
2121
},
2222
setUsername(state, action: PayloadAction<string | null>) {
2323
state.username = action.payload;
@@ -33,4 +33,4 @@ const userSlice = createSlice({
3333

3434
export const { setUser, setUsername, setFriends, setFriendStatus } = userSlice.actions;
3535
export default userSlice.reducer;
36-
export type { UserState };
36+
export type { UserState };

0 commit comments

Comments
 (0)