11import Link from 'next/link'
22import Head from 'next/head'
33import { Component } from 'react'
4- import { Open_Sans } from 'next/font/google'
54import Chessground from '@react-chess/chessground'
65import { Header } from './Header'
76import { Footer } from './Footer'
@@ -17,7 +16,7 @@ interface State {
1716 error : Error | null
1817}
1918
20- const OpenSans = Open_Sans ( { subsets : [ 'latin' ] } )
19+ const openSansClassName = 'font-sans'
2120
2221export class ErrorBoundary extends Component < Props , State > {
2322 constructor ( props : Props ) {
@@ -67,7 +66,7 @@ export class ErrorBoundary extends Component<Props, State> {
6766 href = "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200& display = swap "
6867 />
6968 </ Head >
70- < div className = { `${ OpenSans . className } app-container` } >
69+ < div className = { `${ openSansClassName } app-container` } >
7170 < div className = "flex min-h-screen w-screen flex-col bg-backdrop" >
7271 < Header />
7372 < div className = "flex flex-1 flex-col items-center justify-center gap-4" >
@@ -104,7 +103,7 @@ export class ErrorBoundary extends Component<Props, State> {
104103 />
105104 </ Head >
106105 < div
107- className = { `${ OpenSans . className } app-container flex min-h-screen w-screen flex-col bg-backdrop` }
106+ className = { `${ openSansClassName } app-container flex min-h-screen w-screen flex-col bg-backdrop` }
108107 >
109108 < Header />
110109 < div className = "flex flex-1 flex-col items-center justify-center gap-8 p-6" >
0 commit comments