From 7590ac5ede3b7a978ae5e65c0bef0a9693eb8702 Mon Sep 17 00:00:00 2001 From: Nikos Kontakis Date: Tue, 20 Aug 2024 07:28:08 +0200 Subject: [PATCH] Minor renamings of Page and deactivate dependabot --- .github/workflows/auto-merge.yml | 28 ++++++++++++++-------------- src/Content.tsx | 8 ++++---- src/lib/utils.ts | 4 ++-- src/pages/{About => Home}/index.tsx | 2 +- 4 files changed, 21 insertions(+), 21 deletions(-) rename src/pages/{About => Home}/index.tsx (95%) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index f03a21c..5bf9ddf 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -1,17 +1,17 @@ -name: Dependabot Auto Merge +# name: Dependabot Auto Merge -on: pull_request +# on: pull_request -permissions: - contents: write - pull-requests: write +# permissions: +# contents: write +# pull-requests: write -jobs: - auto-merge: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ahmadnassri/action-dependabot-auto-merge@v2 - with: - target: minor - github-token: ${{ secrets.AUTOMERGE_TOKEN }} +# jobs: +# auto-merge: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - uses: ahmadnassri/action-dependabot-auto-merge@v2 +# with: +# target: minor +# github-token: ${{ secrets.AUTOMERGE_TOKEN }} diff --git a/src/Content.tsx b/src/Content.tsx index ee00d9d..2fcadd3 100644 --- a/src/Content.tsx +++ b/src/Content.tsx @@ -1,15 +1,15 @@ import { Route, Routes } from 'react-router-dom' -import { About } from '@/pages/About' +import { Home } from '@/pages/Home' const pages = [ { path: '', - element: , + element: , }, { - path: '/about', - element: , + path: '/home', + element: , }, ] diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 302bdcd..4b36285 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,5 +1,5 @@ import { type ClassValue, clsx } from 'clsx' -import { LucideProps, Globe } from 'lucide-react' +import { LucideProps, House } from 'lucide-react' import { ForwardRefExoticComponent, RefAttributes } from 'react' import { twMerge } from 'tailwind-merge' @@ -17,5 +17,5 @@ export type RouterType = { } export const routes: RouterType[] = [ - { link: 'about', name: 'About', icon: Globe }, + { link: 'home', name: 'Home', icon: House }, ] diff --git a/src/pages/About/index.tsx b/src/pages/Home/index.tsx similarity index 95% rename from src/pages/About/index.tsx rename to src/pages/Home/index.tsx index 471e2aa..009b690 100644 --- a/src/pages/About/index.tsx +++ b/src/pages/Home/index.tsx @@ -4,7 +4,7 @@ const openInNewTab = (url: string | URL | undefined) => { window.open(url, '_blank', 'noopener,noreferrer') } -export const About = () => { +export const Home = () => { return (