Skip to content

Commit 49087ca

Browse files
author
Ema
committed
fix: resolve typescript build errors in main branch
1 parent ac80074 commit 49087ca

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { RocketTransition } from './components/RocketTransition';
88

99
function App() {
1010
const location = useLocation();
11-
const hideExploreLink = location.pathname === '/' || location.pathname === '/preferences';
1211
const isHomePage = location.pathname === '/';
1312

1413
return (

src/components/OrbitSystem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export default function OrbitSystem() {
9191
}
9292
};
9393

94-
const visibleAliens = mockAliens.filter(a => activeIds.includes(a.id));
9594

9695
return (
9796
<>

src/components/RocketTransition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState } from 'react';
1+
import { useEffect, useState } from 'react';
22
import { motion, AnimatePresence } from 'framer-motion';
33
import { useNavigate } from 'react-router';
44
import { useTransitionContext } from '../context/TransitionContext';

src/context/AppContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { createContext, useState, ReactNode, useContext } from 'react';
1+
import { createContext, useState, useContext } from 'react';
2+
import type { ReactNode } from 'react';
23
import type { AlienProfile } from '../data/mockAliens';
34

45
export interface UserPreferences {

src/context/TransitionContext.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, { createContext, useContext, useState, ReactNode, useEffect } from 'react';
2-
import { useNavigate } from 'react-router';
1+
import { createContext, useContext, useState } from 'react';
2+
import type { ReactNode } from 'react';
33
import { motion } from 'framer-motion';
44

55
interface TransitionContextType {
@@ -12,7 +12,6 @@ interface TransitionContextType {
1212

1313
export const TransitionContext = createContext<TransitionContextType | undefined>(undefined);
1414

15-
const heartSvg = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,25 C50,25 25,0 0,25 C-25,50 25,90 50,100 C75,90 125,50 100,25 C75,0 50,25 50,25 Z" fill="black"/></svg>`;
1615

1716
export const TransitionProvider = ({ children }: { children: ReactNode }) => {
1817
const [isLaunching, setIsLaunching] = useState(false);

0 commit comments

Comments
 (0)