social links fixed
This commit is contained in:
parent
e33dba4584
commit
38d62b13be
@ -123,7 +123,7 @@ const CoinChart = (props: ICoinChartProps): JSX.Element => {
|
|||||||
>
|
>
|
||||||
{
|
{
|
||||||
data && <>
|
data && <>
|
||||||
<Grid container justifyContent="flex-start" style={{ marginTop: 0 }}>
|
<Grid container justifyContent="flex-start" style={{ marginBottom: 20 }}>
|
||||||
<ButtonGroup variant="contained" aria-label="outlined primary button group">
|
<ButtonGroup variant="contained" aria-label="outlined primary button group">
|
||||||
{
|
{
|
||||||
durationOptions.map(item => <Button
|
durationOptions.map(item => <Button
|
||||||
@ -135,8 +135,7 @@ const CoinChart = (props: ICoinChartProps): JSX.Element => {
|
|||||||
}
|
}
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</Grid>
|
</Grid>
|
||||||
<div id="chart" className="chart-container" style={{ position: "relative", height: "auto", width: "80vw" }}>
|
<div id="chart" className="chart-container" style={{ position: "relative", height: "auto" }}> <Line
|
||||||
<Line
|
|
||||||
options={chartOptions}
|
options={chartOptions}
|
||||||
redraw={redraw}
|
redraw={redraw}
|
||||||
updateMode="resize"
|
updateMode="resize"
|
||||||
|
|||||||
@ -23,15 +23,12 @@ const CoinInfo = (props: ICoinInfoProps): JSX.Element => {
|
|||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
Rank: #{data.market_cap_rank}
|
Rank: #{data.market_cap_rank}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} style={{ marginTop: 20 }}>
|
<Grid item xs={12} style={{ marginTop: 20 }}>
|
||||||
Current price: ${data.tickers[0].converted_last.usd}
|
Current price: ${data.tickers[0].converted_last.usd}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} style={{ marginTop: 20 }}>
|
<Grid item xs={12} style={{ marginTop: 20 }}>
|
||||||
Homepage: <a target="_blank" href={data.links.homepage}>{data.links.homepage}</a>
|
Homepage: <a target="_blank" href={data.links.homepage}>{data.links.homepage}</a>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item style={{ marginTop: 20 }}>
|
<Grid item style={{ marginTop: 20 }}>
|
||||||
Votes: {data.sentiment_votes_up_percentage}%
|
Votes: {data.sentiment_votes_up_percentage}%
|
||||||
<ThumbUpIcon style={{ color: '#4eaf0a', fontSize: 16, margin: '0 5' }} />
|
<ThumbUpIcon style={{ color: '#4eaf0a', fontSize: 16, margin: '0 5' }} />
|
||||||
@ -39,8 +36,7 @@ const CoinInfo = (props: ICoinInfoProps): JSX.Element => {
|
|||||||
{data.sentiment_votes_down_percentage}%
|
{data.sentiment_votes_down_percentage}%
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Grid container justifyContent="flex-start" style={{ marginTop: 30, marginBottom: 30 }}>
|
||||||
{/* <Grid container justifyContent="flex-start" style={{ marginTop: 30 }}>
|
|
||||||
{data.links.subreddit_url &&
|
{data.links.subreddit_url &&
|
||||||
<Button style={{ marginRight: 10 }} variant="outlined" startIcon={<RedditIcon />} href={data.links.subreddit_url}>
|
<Button style={{ marginRight: 10 }} variant="outlined" startIcon={<RedditIcon />} href={data.links.subreddit_url}>
|
||||||
Reddit
|
Reddit
|
||||||
@ -51,12 +47,21 @@ const CoinInfo = (props: ICoinInfoProps): JSX.Element => {
|
|||||||
Twitter
|
Twitter
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
{data.links.chat_url &&
|
{
|
||||||
<Button style={{ marginRight: 10 }} variant="outlined" startIcon={<LinkIcon />} href={data.links.chat_url}>
|
Object.entries(data.links.chat_url).map(
|
||||||
|
([key, value]) => Boolean(value)
|
||||||
|
&& <Button
|
||||||
|
key={key}
|
||||||
|
style={{ marginRight: 10 }}
|
||||||
|
variant="outlined"
|
||||||
|
href={String(value)}
|
||||||
|
startIcon={<LinkIcon />}
|
||||||
|
>
|
||||||
Discord
|
Discord
|
||||||
</Button>
|
</Button>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</Grid> */}
|
</Grid>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
41
README.md
41
README.md
@ -5,6 +5,43 @@ tech stack
|
|||||||
- Redux Toolkit
|
- Redux Toolkit
|
||||||
- Material UI
|
- Material UI
|
||||||
|
|
||||||
## Back
|

|
||||||
|
|
||||||
## Front
|
|
||||||
|
## What's inside
|
||||||
|
|
||||||
|
- **Frontend:** Typescript using React, Redux-Toolkit, Bootstrap, react-financial-charts
|
||||||
|
- **Backend:** Javascript using Express
|
||||||
|
|
||||||
|
|
||||||
|
## Download
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/vaidis/Crypto-Assets-Monitor.git
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd Crypto-Assets-Monitor
|
||||||
|
|
||||||
|
# Back-end
|
||||||
|
cd Back
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# Front-end
|
||||||
|
cd Front
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Back-end
|
||||||
|
cd Back
|
||||||
|
npm start
|
||||||
|
|
||||||
|
# Front-end
|
||||||
|
cd Front
|
||||||
|
npm start
|
||||||
|
```
|
||||||
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
Loading…
x
Reference in New Issue
Block a user