-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge branch 'dev' into fix/data-fetching
- Loading branch information
Showing
40 changed files
with
2,123 additions
and
1,176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ dev ] | ||
branches: [dev] | ||
pull_request: | ||
branches: [ dev ] | ||
branches: [dev] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: yarn install --immutable --immutable-cache --check-cache | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ dist-ssr | |
|
||
# Environment variables | ||
.env* | ||
!.env.example | ||
!.env.template |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...omponents/proof-of-reserve/components/merchant-table/components/merchant-table-header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { HStack, Text } from '@chakra-ui/react'; | ||
|
||
// @ts-expect-error: ignoring because of later implementation | ||
function MerchantTableHeader(): React.JSX.Element { | ||
return ( | ||
<HStack px={'25px'} py={'15px'} w={'100%'}> | ||
<Text w={'33.3%'} color={'white'} fontSize={'lg'} fontWeight={800}> | ||
Merchant | ||
</Text> | ||
<Text w={'33.3%'} color={'white'} fontSize={'lg'}> | ||
dlcBTC Minted | ||
</Text> | ||
</HStack> | ||
); | ||
} |
32 changes: 32 additions & 0 deletions
32
.../components/proof-of-reserve/components/merchant-table/components/merchant-table-item.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
|
||
import { Button, HStack, Image, Text } from '@chakra-ui/react'; | ||
import { Merchant } from '@models/merchant'; | ||
|
||
interface MerchantTableItemProps { | ||
merchant: Merchant; | ||
dlcBTCAmount: number; | ||
} | ||
|
||
// @ts-expect-error: ignoring because of later implementation | ||
function MerchantTableItem({ merchant, dlcBTCAmount }: MerchantTableItemProps): React.ReactElement { | ||
//TODO: replace name with logo when the logo is available | ||
const { name } = merchant; | ||
|
||
return ( | ||
<HStack px={'25px'} w={'100%'}> | ||
<Text w={'33.3%'} color={'white'} fontSize={'2xl'} fontWeight={800}> | ||
{name} | ||
</Text> | ||
<HStack w={'33.3%'}> | ||
<Image src={'/images/logos/dlc-btc-logo.svg'} alt={'dlcBTC Logo'} boxSize={'25px'} /> | ||
<Text color={'white'} fontSize={'2xl'} fontWeight={800}> | ||
{dlcBTCAmount} | ||
</Text> | ||
</HStack> | ||
<Button w={'33.3%'} variant={'merchantHistory'}> | ||
Mint/Redeem History | ||
</Button> | ||
</HStack> | ||
); | ||
} |
Oops, something went wrong.