Skip to content

Commit

Permalink
Fix FOUC on package load
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyAbr committed Oct 28, 2024
1 parent 3130a9b commit 052dc7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wally-registry-frontend/src/pages/Package.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React, { useEffect, useState, createRef } from "react"
import { useParams, useLocation, useHistory } from "react-router"
import React, { createRef, useEffect, useState } from "react"
import { useHistory, useLocation, useParams } from "react-router"
import styled from "styled-components"
import { isMobile, notMobile } from "../breakpoints"
import iconDownload from "../assets/icon-download.svg"
import { isMobile, notMobile } from "../breakpoints"
import { Button } from "../components/Button"
import ContentSection from "../components/ContentSection"
import CopyCode from "../components/CopyCode"
import NotFoundMessage from "../components/NotFoundMessage"
import { Heading, Paragraph } from "../components/Typography"
import {
getWallyPackageMetadata,
buildWallyPackageDownloadLink,
getWallyPackageMetadata,
} from "../services/wally.api"
import { WallyPackageMetadata } from "../types/wally"
import capitalize from "../utils/capitalize"
Expand Down Expand Up @@ -276,7 +276,7 @@ export default function Package() {
return (
<>
<ContentSection>
<div>Loading...</div>
<FlexColumns>Loading...</FlexColumns>
</ContentSection>
</>
)
Expand Down

0 comments on commit 052dc7a

Please sign in to comment.