|
| 1 | +import { css } from "@styled-system/css"; |
1 | 2 | import * as React from "react"; |
2 | 3 | import { useNavigate } from "react-router-dom"; |
3 | | -import { PostInput } from "./components/PostInput"; |
| 4 | +import { useCreateDiscussion } from "@/api/hooks/useDiscussions"; |
| 5 | +import { UnauthenticatedState } from "@/components/features/auth/UnauthenticatedState"; |
| 6 | +import { WeeklyTop5 } from "@/components/features/discussions/WeeklyTop5"; |
| 7 | +import { useAuth } from "@/contexts/AuthContext"; |
| 8 | +import { useToast } from "@/contexts/ToastContext"; |
| 9 | +import { useErrorHandler } from "@/hooks/useErrorHandler"; |
4 | 10 | import { FilterSection } from "./components/FilterSection"; |
| 11 | +import { PostInput } from "./components/PostInput"; |
5 | 12 | import { PostList } from "./components/PostList"; |
6 | | -import { WeeklyTop5 } from "@/components/features/discussions/WeeklyTop5"; |
7 | 13 | import { SprintChallenge } from "./components/SprintChallenge"; |
8 | | -import { UnauthenticatedState } from "@/components/features/auth/UnauthenticatedState"; |
9 | | -import { useAuth } from "@/contexts/AuthContext"; |
10 | 14 | import type { SortOption } from "./types"; |
11 | | -import { useCreateDiscussion } from "@/api/hooks/useDiscussions"; |
12 | | -import { useErrorHandler } from "@/hooks/useErrorHandler"; |
13 | | -import { useToast } from "@/contexts/ToastContext"; |
14 | | -import { css } from "@styled-system/css"; |
15 | 15 |
|
16 | 16 | export function TimelinePage() { |
17 | 17 | const { user } = useAuth(); |
@@ -132,12 +132,11 @@ const mainContentColumn = css({ |
132 | 132 | }); |
133 | 133 |
|
134 | 134 | const sprintChallengeSection = css({ |
135 | | - paddingTop: "12px", |
136 | | - paddingBottom: 0 |
| 135 | + paddingY: "1rem" |
137 | 136 | }); |
138 | 137 |
|
139 | 138 | const postInputSection = css({ |
140 | | - paddingX: { lg: "1.5rem" } |
| 139 | + paddingX: "1rem" |
141 | 140 | }); |
142 | 141 |
|
143 | 142 | const filterSection = css({ |
|
0 commit comments