Skip to content

Commit c379e87

Browse files
committed
Rename APP to PushSubscription component
1 parent 931d387 commit c379e87

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/App.css

Whitespace-only changes.

src/App.tsx renamed to src/PushSubscription.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useEffect, useState } from 'react';
2-
import './App.css';
32

4-
export default function App() {
3+
export default function PushSubscription() {
54
const [subscription, setSubscription] = useState('');
65
useEffect(() => {
76
window.addEventListener('load', async () => {

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import App from './App';
3+
import PushSubscription from './PushSubscription';
44

55
ReactDOM.render(
66
<React.StrictMode>
7-
<App />
7+
<PushSubscription />
88
</React.StrictMode>,
99
document.getElementById('root')
1010
);

0 commit comments

Comments
 (0)