diff --git a/src/components/pages/Disruption.js b/src/components/DisruptionButton.js
similarity index 62%
rename from src/components/pages/Disruption.js
rename to src/components/DisruptionButton.js
index 15aac97..8537e35 100644
--- a/src/components/pages/Disruption.js
+++ b/src/components/DisruptionButton.js
@@ -1,7 +1,7 @@
import addNotification from "react-push-notification";
-const Disruption = () => {
- const buttonClick = () => {
+const DisruptionButton = () => {
+ const genDisrupt = () => {
addNotification({
title: "Warning",
subtitle: "This is a subtitle",
@@ -12,12 +12,10 @@ const Disruption = () => {
};
return (
-
-
);
};
-export default Disruption;
+export default DisruptionButton;
diff --git a/src/components/NavigationDrawer.js b/src/components/NavigationDrawer.js
index 2eec721..99df8a8 100644
--- a/src/components/NavigationDrawer.js
+++ b/src/components/NavigationDrawer.js
@@ -1,10 +1,15 @@
-import './css/NavigationDrawer.css';
import React, { Component } from 'react';
+import './css/NavigationDrawer.css';
+
+import DisruptionButton from "./DisruptionButton.js";
+
class NavigationDrawer extends Component {
render() {
return (
-
+
+
+
);
}
}
diff --git a/src/components/pages/TrafficInfo.js b/src/components/pages/TrafficInfo.js
index 877cabb..1a99d22 100644
--- a/src/components/pages/TrafficInfo.js
+++ b/src/components/pages/TrafficInfo.js
@@ -9,7 +9,6 @@ import TrafficList from "../TrafficList.js";
import Stop from "../../classes/Stop.js";
import Departure from "../../classes/Departure.js";
-import Disruption from "./Disruption.js";
class TrafficInfo extends Component {
render() {
@@ -36,11 +35,6 @@ class TrafficInfo extends Component {
-
-
- Störning
-
-
>
);
}