Skip to content

Commit 59fd0a6

Browse files
committed
upate
1 parent 3fb2843 commit 59fd0a6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

hackathon/spacecraft/src/hooks/useImage.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* A custom hook that returns the image source for a given starship title.
3+
*
4+
* @param {string} title - The title of the starship.
5+
* @returns {any} The image source corresponding to the starship title.
6+
*
7+
* @example
8+
* const imageSource = useImage("Millennium Falcon");
9+
* // imageSource will be the path to the Millennium Falcon image.
10+
*/
111
export const useImage = (title: string) => {
212
const imageName = `${title.toLowerCase().replace(" ", "")}`;
313

hackathon/spacecraft/src/navigation/AuthNavigator.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { createNativeStackNavigator } from "@react-navigation/native-stack";
32

43
import { Routes } from "~/navigation/Routes";

0 commit comments

Comments
 (0)