-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from hansmrtn/ui-refresh
UI refresh
- Loading branch information
Showing
12 changed files
with
230 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
REACT_APP_NETWORK_NAME=<YOUR_NETWORK> | ||
REACT_APP_PROVIDER=<YOUR_APP_PROVIDER> | ||
REACT_APP_API_URL=<YOUR_API_URL> | ||
REACT_APP_ETHERSCAN_KEY=<YOUR_ETHERSCAN_API_KEY> | ||
REACT_APP_NETWORK_NAME=<NETWROK_NAME> | ||
REACT_APP_PROVIDER=<PROVIDER_URL> | ||
REACT_APP_API_URL=<API_URL> | ||
REACT_APP_ETHERSCAN_KEY=<ETHERSCAN_KEY> | ||
REACT_APP_VERSION=<APP_VERSION> | ||
REACT_APP_INFURA_ID=<INFURA_ID> | ||
REACT_APP_BLOCKNATIVE_DAPPID=<BN_DAPPID> |
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
20 changes: 20 additions & 0 deletions
20
packages/react-app/src/routes/home/components/EmptyCard.jsx
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,20 @@ | ||
import {Box, Button, Text} from "@chakra-ui/react"; | ||
import { useHistory, Link } from "react-router-dom"; | ||
|
||
export const EmptyCard = ({}) => { | ||
const routeHistory = useHistory(); | ||
return ( | ||
<Box borderWidth="1px" rounded="md" shadow="xl" p="5" w="sm" key={`box-create`}> | ||
<Text>No Parties</Text> | ||
<Button | ||
variant="link" | ||
to={`/create`} | ||
onClick={() => { | ||
routeHistory.push(`/create`); | ||
}} | ||
> | ||
Create a new party | ||
</Button> | ||
</Box> | ||
) | ||
} |
24 changes: 24 additions & 0 deletions
24
packages/react-app/src/routes/home/components/PartyCard.jsx
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,24 @@ | ||
import { Box, Button, Text } from "@chakra-ui/react"; | ||
import { useHistory, Link } from "react-router-dom"; | ||
|
||
export const PartyCard = ({ name, desc, id }) => { | ||
const routeHistory = useHistory(); | ||
return ( | ||
<Box borderWidth="1px" key={`box-${id}`} rounded="md" shadow="xl" p="5" w="sm"> | ||
<Text fontSize="lg" fontWeight="semibold"> | ||
{name} | ||
</Text> | ||
<Text fontSize="xs" color="gray.400">{`Id: ${id}`}</Text> | ||
<Text isTruncated>{desc}</Text> | ||
<Button | ||
variant="link" | ||
to={`/party/${id}`} | ||
onClick={() => { | ||
routeHistory.push(`/party/${id}`); | ||
}} | ||
> | ||
View | ||
</Button> | ||
</Box> | ||
); | ||
}; |
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,2 @@ | ||
export { EmptyCard } from "./EmptyCard"; | ||
export { PartyCard } from "./PartyCard"; |
Oops, something went wrong.