-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated SidePanel,Added BackButton, * Updated UI till[orgId] --------- Co-authored-by: Allen Shibu <[email protected]>
- Loading branch information
1 parent
bd2d753
commit 5fc93bf
Showing
7 changed files
with
295 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Card, CardBody, Image, Text, Box } from '@chakra-ui/react'; | ||
import { useRouter } from 'next/router'; | ||
const ItemCard = (props) => { | ||
const router = useRouter(); | ||
|
||
if (props.logo == '') { | ||
var logo = '/ThisIsAnORG.png'; | ||
} else { | ||
var logo = props.logo; | ||
} | ||
return ( | ||
<Box | ||
boxShadow="base" | ||
backgroundColor="D9D9D9" | ||
borderRadius="30px" | ||
borderColor="gray" | ||
height="180px" | ||
width="180px" | ||
display="flex" | ||
flexDir="column" | ||
alignItems="center" | ||
> | ||
<Image | ||
src={logo} | ||
alt="logo of org" | ||
maxH="100px" | ||
maxW="150px" | ||
borderRadius="30px" | ||
p="10px" | ||
textAlign="center" | ||
/> | ||
<Text as="b" fontSize="xl" maxW="150px" textAlign="center"> | ||
{props.name} | ||
</Text> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default ItemCard; |
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
Oops, something went wrong.