Skip to content

Commit

Permalink
refactor: remove unused WrapperDemo component
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-ub committed Oct 6, 2024
1 parent f4f3426 commit 9259192
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
7 changes: 1 addition & 6 deletions src/components/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import config from 'virtual:vitesse/user-config'
import Head from '../components/Head.astro'
import Header from './Header.astro'
import WrapperDemo from './WrapperDemo.astro'
import WrapperPost from './WrapperPost.astro'
import '@unocss/reset/tailwind.css'
Expand All @@ -17,10 +16,6 @@ import '../styles/markdown.css'
// Important that this is the last import so it can override built-in styles.
import 'virtual:vitesse/user-css'
const { slug } = Astro.props
const isDemo = slug.includes('/demo/')
---

<script is:inline>
Expand Down Expand Up @@ -62,7 +57,7 @@ const isDemo = slug.includes('/demo/')
<Header {...Astro.props} />

<main class="of-x-hidden px-7 py-10">
{isDemo ? <WrapperDemo {...Astro.props} /> : <WrapperPost {...Astro.props} />}
<WrapperPost {...Astro.props} />

<div class="slide-enter prose m-auto mb-6 mt-10 flex animate-delay-1200!">
<Footer />
Expand Down
31 changes: 0 additions & 31 deletions src/components/WrapperDemo.astro

This file was deleted.

0 comments on commit 9259192

Please sign in to comment.