Skip to content

Commit 768071b

Browse files
sadiq1971irubidojoshdougall
authored
Closing Release (#2278)
* Closing Banner (#2276) * closing banner * email * storage closing banner * remove unused * Update packages/files-ui/src/Components/Elements/Banner.tsx Co-authored-by: Josh <[email protected]> * Update packages/storage-ui/src/Components/Elements/Banner.tsx Co-authored-by: Josh <[email protected]> * fix: lint --------- Co-authored-by: Josh <[email protected]> Co-authored-by: sadiq1971 <[email protected]> * Closing Banner Updated (#2277) * closing banner * email * storage closing banner * remove unused * Update packages/files-ui/src/Components/Elements/Banner.tsx Co-authored-by: Josh <[email protected]> * Update packages/storage-ui/src/Components/Elements/Banner.tsx Co-authored-by: Josh <[email protected]> * fix: lint * fix: banner updated * fix: lint ci --------- Co-authored-by: irubido <[email protected]> Co-authored-by: Ivan Rubido <[email protected]> Co-authored-by: Josh <[email protected]> --------- Co-authored-by: Ivan Rubido <[email protected]> Co-authored-by: Josh <[email protected]> Co-authored-by: irubido <[email protected]>
1 parent 502d6df commit 768071b

File tree

5 files changed

+57
-3
lines changed

5 files changed

+57
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
git config --global user.email '[email protected]'
1414
1515
# use node module caching
16-
- uses: actions/cache@v2
16+
- uses: actions/cache@v4
1717
with:
1818
path: '**/node_modules'
1919
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

packages/files-ui/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { ThresholdKeyProvider } from "./Contexts/ThresholdKeyContext"
1212
import { lightTheme } from "./Themes/LightTheme"
1313
import { darkTheme } from "./Themes/DarkTheme"
1414
import { useLocalStorage } from "@chainsafe/browser-storage-hooks"
15-
import { FilesApiProvider } from "./Contexts/FilesApiContext"
15+
import { FilesApiProvider } from "./Contexts/FilesApiContext"
1616
import { UserProvider } from "./Contexts/UserContext"
1717
import { BillingProvider } from "./Contexts/BillingContext"
1818
import { PosthogProvider } from "./Contexts/PosthogContext"
@@ -21,6 +21,7 @@ import { StylesProvider, createGenerateClassName } from "@material-ui/styles"
2121
import { HelmetProvider } from "react-helmet-async"
2222

2323
import ErrorModal from "./Components/Modules/ErrorModal"
24+
import Banner from "./Components/Elements/Banner"
2425

2526
// making material and jss use one className generator
2627
const generateClassName = createGenerateClassName({
@@ -123,6 +124,8 @@ const App = () => {
123124
<BillingProvider>
124125
<PosthogProvider>
125126
<AppWrapper>
127+
{/* Banner on top of the app*/}
128+
<Banner />
126129
<FilesRoutes />
127130
</AppWrapper>
128131
</PosthogProvider>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from "react"
2+
import { Box, Typography } from "@material-ui/core"
3+
4+
const Banner = () => {
5+
return (
6+
<Box
7+
width="100%"
8+
padding={2}
9+
bgcolor="#ffc4c4"
10+
border={1}
11+
borderColor="grey.300"
12+
boxShadow={1}
13+
textAlign="center"
14+
margin={0}
15+
>
16+
<Typography variant="body1" >
17+
{/* eslint-disable-next-line max-len */}
18+
To our valued customers, ChainSafe Storage will be sunset on April 1st, 2025. User uploads will be suspended prior to that date on March 20th, 2025. Please retrieve all of your files on the platform before April 1st to avoid loosing access. If you are using Storage as a back end, please switch over to another storage service. Feel free to send an email to [email protected] if you have any questions or concerns.
19+
</Typography>
20+
</Box>
21+
)
22+
}
23+
24+
export default Banner

packages/storage-ui/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LanguageProvider } from "./Contexts/LanguageContext"
1010
import { lightTheme } from "./Themes/LightTheme"
1111
import { darkTheme } from "./Themes/DarkTheme"
1212
import { useLocalStorage } from "@chainsafe/browser-storage-hooks"
13-
import { StorageApiProvider } from "./Contexts/StorageApiContext"
13+
import { StorageApiProvider } from "./Contexts/StorageApiContext"
1414
import { StorageProvider } from "./Contexts/StorageContext"
1515
import { UserProvider } from "./Contexts/UserContext"
1616
import { BillingProvider } from "./Contexts/BillingContext"
@@ -19,6 +19,7 @@ import { PosthogProvider } from "./Contexts/PosthogContext"
1919
import { HelmetProvider } from "react-helmet-async"
2020
import ErrorModal from "./Components/Modules/ErrorModal"
2121
import { StylesProvider, createGenerateClassName } from "@material-ui/styles"
22+
import Banner from "./Components/Elements/Banner"
2223

2324
// making material and jss use one className generator
2425
const generateClassName = createGenerateClassName({
@@ -104,6 +105,8 @@ const App = () => {
104105
<BillingProvider>
105106
<PosthogProvider>
106107
<AppWrapper>
108+
{/* Banner on top of the app*/}
109+
<Banner />
107110
<StorageRoutes />
108111
</AppWrapper>
109112
</PosthogProvider>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from "react"
2+
import { Box, Typography } from "@material-ui/core"
3+
4+
const Banner = () => {
5+
return (
6+
<Box
7+
width="100%"
8+
padding={2}
9+
bgcolor="#ffc4c4"
10+
border={1}
11+
borderColor="grey.300"
12+
boxShadow={1}
13+
textAlign="center"
14+
margin={0}
15+
>
16+
<Typography variant="body1" >
17+
{/* eslint-disable-next-line max-len */}
18+
To our valued customers, ChainSafe Storage will be sunset on April 1st, 2025. User uploads will be suspended prior to that date on March 20th, 2025. Please retrieve all of your files on the platform before April 1st to avoid loosing access. If you are using Storage as a back end, please switch over to another storage service. Feel free to send an email to [email protected] if you have any questions or concerns.
19+
</Typography>
20+
</Box>
21+
)
22+
}
23+
24+
export default Banner

0 commit comments

Comments
 (0)