refactor: remove unused props from components and improve error handling in about page (#385)
This commit is contained in:
1 parent
c8142d0ac5
commit
7ea2f7f40f
8 files changed
+11
-12
No files matched your search
@@ -3,7 +3,6 @@ import Profile from './Profile.astro'
|
||||
import Tag from './Tags.astro'
|
||||
import Categories from './Categories.astro'
|
||||
import type { MarkdownHeading } from 'astro'
|
||||
import TOC from './TOC.astro'
|
||||
|
||||
interface Props {
|
||||
class? : string
|
||||
@@ -11,7 +10,6 @@ interface Props {
|
||||
}
|
||||
|
||||
const className = Astro.props.class
|
||||
const headings = Astro.props.headings
|
||||
|
||||
---
|
||||
<div id="sidebar" class:list={[className, "w-full"]}>
|
||||
|
||||
@@ -10,7 +10,6 @@ interface Props {
|
||||
class?: string
|
||||
style?: string
|
||||
}
|
||||
const props = Astro.props
|
||||
const { id, name, isCollapsed, collapsedHeight, style } = Astro.props
|
||||
const className = Astro.props.class
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user