Skip to content

Commit

Permalink
Prettier updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Graule committed Aug 14, 2024
1 parent b686151 commit 1fce5cb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/_homeComponents/FeaturedProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default async function FeaturedProjects() {
return null;
}
let previewImage =
project?.data?.attributes?.previewImage?.data?.attributes
?.url;
project?.data?.attributes?.previewImage?.data
?.attributes?.url;

if (STRAPI_URL && previewImage != undefined) {
previewImage = STRAPI_URL + previewImage;
Expand Down
21 changes: 13 additions & 8 deletions frontend/src/app/satellites/SatelliteResponsiveTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,19 @@ export default function SatelliteResponsiveTable({
/>
))
: (satellites ?? []).map((satellite) => (
<TableRow
className="cursor-pointer hover:bg-white hover:text-black"
key={satellite.attributes?.catalogNumberNORAD}
{...(satellite.attributes?.catalogNumberNORAD ? {
onClick: () =>
handleRowClick(satellite.attributes?.slug ?? "")
} : {})}
>
<TableRow
className="cursor-pointer hover:bg-white hover:text-black"
key={satellite.attributes?.catalogNumberNORAD}
{...(satellite.attributes?.catalogNumberNORAD
? {
onClick: () =>
handleRowClick(
satellite.attributes
?.slug ?? "",
),
}
: {})}
>
<TableCell className="px-6">
{satellite.attributes?.name}
</TableCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ const OrbitDataGraph: React.FC<OrbitDataProps> = ({
<>
{orbitalData && (
<div ref={svgContainer} className="flex w-full flex-col">
<div className="flex mb-5">
<div className="mb-5 flex">
<p>Orbital parameters history (source :</p>
<a className="hover:underline" href="https://www.space-track.org/">Space Track</a>
<a
className="hover:underline"
href="https://www.space-track.org/"
>
Space Track
</a>
<p>)</p>
</div>
<div className="zoom-container mb-5 flex items-center">
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ export default function Footer() {

<div className="flex flex-1 justify-end">
<div className="flex flex-col text-center lg:text-right">
<a className="hover:underline" href="http://ntnu.edu/smallsat">NTNU Small Satellite Lab</a>
<a
className="hover:underline"
href="http://ntnu.edu/smallsat"
>
NTNU Small Satellite Lab
</a>
<span className="">Trondheim, Norway</span>
<p>Norwegian University of Science and Technology</p>
<p className="lg:hidden">
Expand Down

0 comments on commit 1fce5cb

Please sign in to comment.