Skip to content

Commit

Permalink
small ui
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbrownbike committed Sep 27, 2024
1 parent c5f09f9 commit dd9cedc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/templates/Changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import Tooltip from 'components/Tooltip'
import { IconShieldLock } from '@posthog/icons'
import { useRoadmaps } from 'hooks/useRoadmaps'
import CloudinaryImage from 'components/CloudinaryImage'
import { Skeleton } from 'components/Questions/QuestionsTable'
import uniqBy from 'lodash/uniqBy'

const Select = ({ onChange, values, ...other }) => {
Expand Down Expand Up @@ -111,6 +110,15 @@ export const Change = ({ title, teamName, media, description, cta }) => {
)
}

export const Skeleton = () => {
return (
<div className="space-y-2">
<div className="animate-pulse bg-accent dark:bg-accent-dark h-8 w-full rounded-md" />
<div className="animate-pulse bg-accent dark:bg-accent-dark h-44 w-full rounded-md" />
</div>
)
}

export default function Changelog({ pageContext }) {
const { user } = useUser()
const [filters, setFilters] = useState({})
Expand Down Expand Up @@ -204,7 +212,7 @@ export default function Changelog({ pageContext }) {
const changesByMonth = groupBy(roadmaps, (roadmap) => dayjs(roadmap.attributes.dateCompleted).format('MMM'))

const tableOfContents = Object.keys(
groupBy(initialRoadmaps, (roadmap) => dayjs(roadmap.attributes.dateCompleted).format('MMMM'))
groupBy(roadmaps, (roadmap) => dayjs(roadmap.attributes.dateCompleted).format('MMMM'))
).map((month) => {
return { url: month, value: month, depth: 0 }
})
Expand Down

0 comments on commit dd9cedc

Please sign in to comment.