From dc640b0fa0ec2bb8be3eb7c0fd24e895ce48b6ce Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 7 Feb 2022 11:17:14 +0100 Subject: [PATCH] Upgrade bluelib-react --- package.json | 2 +- pages/_app.tsx | 48 ++++++++++++++++++++++++------------------------ yarn.lock | 8 ++++---- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index 60dfc86..b4dd73f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dependencies": { "@matejmazur/react-katex": "^3.1.3", "@sentry/nextjs": "^6.17.4", - "@steffo/bluelib-react": "^4.3.0", + "@steffo/bluelib-react": "^4.4.2", "katex": "^0.15.2", "next": "12.0.10", "react": "17.0.2", diff --git a/pages/_app.tsx b/pages/_app.tsx index 15dc114..4783b17 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -2,38 +2,38 @@ import "../styles/global.css" import type { AppProps } from 'next/app' import { Link } from "../components/link" import {Bluelib, Heading, LayoutThreeCol, Anchor as A, Footer} from "@steffo/bluelib-react" -import { useState } from "react" +import { useState, useEffect, useRef } from "react" import { BluelibTheme } from "@steffo/bluelib-react/dist/types" import { Theme } from "../components/theme-switcher" function MyApp({ Component, pageProps }: AppProps) { const [theme, setTheme] = useState("sophon") + + return ( - - - - - - Unisteffo - - - - - - - + + + + + Unisteffo + + + + + + ) } diff --git a/yarn.lock b/yarn.lock index 7226933..2179fdc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -278,10 +278,10 @@ dependencies: "@sentry/cli" "^1.72.0" -"@steffo/bluelib-react@^4.3.0": - version "4.3.0" - resolved "https://registry.yarnpkg.com/@steffo/bluelib-react/-/bluelib-react-4.3.0.tgz#762c881db2324edc2cb8f04008e85943d94cdfb7" - integrity sha512-sV8xpyhSMr/wQVQJxlemOQdZSebVp744Uab6kAM6ChGgG8uCss8/BZJJHRRm3b/QALUaJ1/tmDTyKUOzKEn8Xw== +"@steffo/bluelib-react@^4.4.2": + version "4.4.2" + resolved "https://registry.yarnpkg.com/@steffo/bluelib-react/-/bluelib-react-4.4.2.tgz#3a737ea2825530a51bdde66d4564d12e73feecda" + integrity sha512-poi6kW7QLNPp/trOV2XXQ6wkYIft5ZG+b2vogFkm36+snPiMOm7nlhaHTqTGyQkJtd3L+DnG/osvDSLJvTlHWQ== dependencies: "@babel/runtime" "^7.15.3" classnames "^2.3.1"