Skip to content

Commit

Permalink
refactor && remove unwanted components
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Umer Farooq <[email protected]>
  • Loading branch information
lablnet committed Feb 3, 2024
1 parent 6e52411 commit ac9db45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/components/Home/RecentProjects.astro

This file was deleted.

6 changes: 2 additions & 4 deletions src/components/Home/ToggleSwitcher.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
// @ts-disable
import { meta } from '../../utils/const';
import Skills from './Skills.astro';
import Companies from './Companies.astro';
import RecentProjects from './RecentProjects.astro';
import Projects from './Projects.astro';
import Education from './Education.astro';
import Certificate from './Certificate.astro';
import Spacer from './Spacer.astro';
// Props for sections
let { sections } = Astro.props;
Expand Down Expand Up @@ -46,7 +44,7 @@ let { sections } = Astro.props;
>
{section.component === 'Skills' && <Skills />}
{section.component === 'Companies' && <Companies />}
{section.component === 'RecentProjects' && <RecentProjects />}
{section.component === 'RecentProjects' && <Companies type="projects" title={meta.topProjects.title} description={meta.topProjects.description} />}
{section.component === 'Projects' && <Projects />}
{section.component === 'Education' && <Education />}
{section.component === 'Certificate' && <Certificate />}
Expand Down

0 comments on commit ac9db45

Please sign in to comment.