Skip to content
Snippets Groups Projects
Commit d23be9f8 authored by Evelyn Eastmond's avatar Evelyn Eastmond
Browse files

Make non draggable.

parent 820335c2
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
margin: auto;
border: 1px solid #FF8C1A;
border-radius: 8px;
cursor: move;
background: #FFF0DF;
display: flex;
flex-direction: row;
......
import React from 'react';
import PropTypes from 'prop-types';
import Draggable from 'react-draggable';
import Box from '../box/box.jsx';
import styles from './alert.css';
// this is a functional component, declared with arrow syntax
const Alerts = props => (
<Draggable
<Box
bounds="parent"
>
<div className={styles.alertContainer}>
......@@ -26,7 +26,7 @@ const Alerts = props => (
x
</div>
</div>
</Draggable>
</Box>
);
Alerts.propTypes = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment