Skip to content

Commit

Permalink
fix: replace webp logo with svg (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocorallo authored Mar 12, 2024
1 parent c7ec871 commit 839c05b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/ExtendCorrection/DocumentHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StyleSheet } from '../../utils/style'
import logo from '../../static/logo3000.webp'
import { links } from '../../utils/constants'

const styles = StyleSheet.create({
Expand Down Expand Up @@ -40,7 +39,7 @@ export default function DocumentHeader() {
target="_blank"
href={links.polinetwork}
>
<img src={logo} alt="logo" style={styles.logo} />
<img src={links.polinetworkLogoSvg} alt="logo" style={styles.logo} />
<h1 style={styles.text}>PoliNetwork</h1>
</a>
<h1 style={styles.rightText}>The TOL Project</h1>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useContext, useMemo, useState } from 'react'
import { StyleSheet } from '../utils/style'
import { statePair } from '../utils/types'
import logo from '../static/logo3000.webp'
import { links, View } from '../utils/constants'
import { MobileContext } from '../utils/contexts'
import { useTranslation } from 'react-i18next'
Expand Down Expand Up @@ -78,7 +77,7 @@ export default function Header({ viewState }: HeaderProps) {
target="_blank"
href={links.polinetwork}
>
<img src={logo} alt="logo" style={styles.logo} />
<img src={links.polinetworkLogoSvg} alt="logo" style={styles.logo} />
{!mobile && <h1 style={styles.text}>PoliNetwork</h1>}
</a>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export const links = {
'https://github.com/PoliNetworkOrg/TheTOLProject/blob/main/LICENSE',
githubSource: 'https://github.com/PoliNetworkOrg/TheTOLProject/',
polinetwork: 'https://polinetwork.org',
polinetworkLogoSvg:
'https://raw.githubusercontent.com/PoliNetworkOrg/Logo/1bf5ca6d64658d33d0159c0f526b57a6a31b9fc6/Logo.svg',
telegramPreparazioneTOL: 'https://t.me/joinchat/_zugEikozmcyMzA0',
telegramTheTOLProject: 'https://t.me/+amLdTd-EoHw1MWRk',
localStorageMDN:
Expand Down

0 comments on commit 839c05b

Please sign in to comment.