-
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.
Single trade response feature (#148)
* basic cards * wireframed trade/single/response * styled results * font color/style * submit state, no response and error handling * changed grid bg from odd to even children * add filtering feat for results * add tests
- Loading branch information
Showing
19 changed files
with
1,436 additions
and
127 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
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
|
||
import { Flex, HStack, Heading, Image, Text, VStack } from '@chakra-ui/react'; | ||
import { | ||
legendItems, | ||
legendItemsDark, | ||
} from '../../../utility/common-components'; | ||
import useColorMode from '@/app/_hooks/useColorMode'; | ||
import PageHeading from '../../../utility/pageHeading'; | ||
|
||
const ResponseLegend = () => { | ||
const { isDark } = useColorMode(); | ||
return ( | ||
<> | ||
<PageHeading heading="Top Trades" /> | ||
<HStack> | ||
<Heading as="h3" size="sm" hideBelow="md"> | ||
Legend: | ||
</Heading> | ||
<Flex gap={4}> | ||
{isDark | ||
? legendItems.map((item, index) => ( | ||
<VStack key={index} width="fit-content"> | ||
<Text size="xs">{item.text}:</Text> | ||
<Image src={item.src} alt={item.alt} boxSize="20px" /> | ||
</VStack> | ||
)) | ||
: legendItemsDark.map((item, index) => ( | ||
<VStack key={index} width="fit-content"> | ||
<Text size="xs">{item.text}:</Text> | ||
<Image src={item.src} alt={item.alt} boxSize="20px" /> | ||
</VStack> | ||
))} | ||
</Flex> | ||
</HStack> | ||
</> | ||
); | ||
}; | ||
|
||
export default ResponseLegend; |
Oops, something went wrong.