v0.1/new-features #44
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
'use client'
 | 
			
		||||
 | 
			
		||||
import React from 'react';
 | 
			
		||||
 | 
			
		||||
import { SiGitea } from "react-icons/si";
 | 
			
		||||
 | 
			
		||||
import Icon from '../Icon';
 | 
			
		||||
 | 
			
		||||
import { REPO_GITEA_URL } from '@/constants/repo';
 | 
			
		||||
 | 
			
		||||
const Menu: React.FC = () => {
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
        <Icon handleClick={() => {window.location.href = REPO_GITEA_URL;}}>
 | 
			
		||||
            {<SiGitea size={24} />}
 | 
			
		||||
        </Icon>
 | 
			
		||||
    );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default Menu;
 | 
			
		||||
| 
						 | 
				
			
			@ -3,13 +3,13 @@ import React from 'react';
 | 
			
		|||
import style from './Menu.module.scss'
 | 
			
		||||
 | 
			
		||||
import Theme from './Theme';
 | 
			
		||||
import Language from './Language';
 | 
			
		||||
import Repo from './Repo';
 | 
			
		||||
 | 
			
		||||
const Menu: React.FC = () => {
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
        <div className={style.container}>
 | 
			
		||||
            <Language />
 | 
			
		||||
            <Repo />
 | 
			
		||||
            <Theme />
 | 
			
		||||
        </div>
 | 
			
		||||
    );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
export const REPO_GITEA_URL = 'https://git.lamacchinadesiderante.org/lamacchinadesiderante/proxyraye-nextjs'
 | 
			
		||||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ export default createMiddleware({
 | 
			
		|||
  locales: ['en', 'it'],
 | 
			
		||||
 
 | 
			
		||||
  // Used when no locale matches
 | 
			
		||||
  defaultLocale: 'it'
 | 
			
		||||
  defaultLocale: 'en'
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
export const config = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue