Skip to content

Commit

Permalink
font changes, greypixel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestarrdev committed May 10, 2024
1 parent 32dd813 commit 5cb0f9e
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 25 deletions.
10 changes: 5 additions & 5 deletions globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
font-weight: 200;
src:
local('Loos ExtraLight'),
url('../src/assets/fonts/Loos-ExtraLight.otf') format('opentype');
url('/fonts/Loos-ExtraLight.otf') format('opentype');
}

@font-face {
Expand All @@ -92,7 +92,7 @@
font-weight: 400;
src:
local('Loos Regular'),
url('../src/assets/fonts/Loos-Regular.otf') format('opentype');
url('/fonts/Loos-Regular.otf') format('opentype');
}

@font-face {
Expand All @@ -101,7 +101,7 @@
font-weight: 500;
src:
local('Loos Medium'),
url('../src/assets/fonts/Loos-Medium.otf') format('opentype');
url('/fonts/Loos-Medium.otf') format('opentype');
}

@font-face {
Expand All @@ -110,7 +110,7 @@
font-weight: 700;
src:
local('Loos Bold'),
url('../src/assets/fonts/Loos-Bold.otf') format('opentype');
url('/fonts/Loos-Bold.otf') format('opentype');
}

@font-face {
Expand All @@ -119,5 +119,5 @@
font-weight: 900;
src:
local('Loos Black'),
url('../src/assets/fonts/Loos-Black.otf') format('opentype');
url('/fonts/Loos-Black.otf') format('opentype');
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" class="dark h-full">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="src/assets/favicon.ico" />
<link rel="icon" type="image/png" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions src/features/ui/header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
export const Header = () => {
return (
<div className="p-6">
<img
src="../../src/assets/airswap-logo-with-text.svg"
alt="airswap logo"
/>
<img src="/airswap-logo-with-text.svg" alt="airswap logo" />
</div>
);
};
39 changes: 24 additions & 15 deletions src/hooks/useSetChainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,33 @@ import { useEffect } from 'react';

type Order =
| {
nonce: number;
signerWallet: string;
senderWallet: string | null;
expiry: number;
signerToken: string;
signerAmount: string;
senderToken: string;
senderAmount: string;
v: number;
r: string;
s: string;
chainId?: number | undefined;
swapContract?: string | undefined;
protocolFee?: number | undefined;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[x: string]: any;
}
| undefined;
// | {
// nonce: number;
// signerWallet: string;
// senderWallet: string | null;
// expiry: number;
// signerToken: string;
// signerAmount: string;
// senderToken: string;
// senderAmount: string;
// v: number;
// r: string;
// s: string;
// chainId?: number | undefined;
// swapContract?: string | undefined;
// protocolFee?: number | undefined;
// }
// | undefined;

export const useSetChainId = ({ order }: { order: Order }): void => {
export const useSetChainId = ({
order,
}: {
order: Order | undefined;
}): void => {
const { setIsSelectDisabled, setSelectedChainId } = useAppStore();

useEffect(() => {
Expand Down

0 comments on commit 5cb0f9e

Please sign in to comment.