Skip to content

Commit

Permalink
resolve the image download issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasaifee42 committed Apr 9, 2024
1 parent d2d01ef commit 9b9e172
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<meta name="theme-color" content="#000000" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title>UNDP Data Platform SDG Accelerator</title>
<link rel="stylesheet" href="https://use.typekit.net/jtg8msg.css" />
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/mainStyleSheet.css">
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraphingInterface.css">
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraph.css">
<link rel="stylesheet" href="https://use.typekit.net/jtg8msg.css" crossorigin="anonymous" />
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/mainStyleSheet.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraphingInterface.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraph.css" crossorigin="anonymous">
</head>
<body style="margin: 0">
<div id="root" data-bucket-embed></div>
Expand Down
38 changes: 19 additions & 19 deletions src/Priorities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,25 +335,25 @@ export const Priorities = (props: Props) => {
<>
<div className='margin-top-07'>
{
selectedFileNotAnalyzed.length > 0
? (
<div className='flex-div margin-bottom-05 flex-wrap'>
{
selectedFileNotAnalyzed.map((d: any, i: number) => (
<div className='undp-chip-gray undp-chip' key={i}>
{d.name}
{' '}
(
{(d.size / 1024 / 1024).toFixed(1)}
{' '}
MBs)
<CloseIcon onClick={() => { setSelectedFileNotAnalyzed(selectedFileNotAnalyzed.filter((el: any) => d !== el)); }} />
</div>
))
}
</div>
) : null
}
selectedFileNotAnalyzed.length > 0
? (
<div className='flex-div margin-bottom-05 flex-wrap'>
{
selectedFileNotAnalyzed.map((d: any, i: number) => (
<div className='undp-chip-gray undp-chip' key={i}>
{d.name}
{' '}
(
{(d.size / 1024 / 1024).toFixed(1)}
{' '}
MBs)
<CloseIcon onClick={() => { setSelectedFileNotAnalyzed(selectedFileNotAnalyzed.filter((el: any) => d !== el)); }} />
</div>
))
}
</div>
) : null
}
<UploadEl>
<label htmlFor='file-upload-analyze' className='custom-file-upload'>
<UploadButtonEl>Add Documents</UploadButtonEl>
Expand Down

0 comments on commit 9b9e172

Please sign in to comment.