mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 06:28:27 +01:00
Added backup/restore function
This commit is contained in:
31
resources/js/components/Data/DataRow.js
vendored
Normal file
31
resources/js/components/Data/DataRow.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import React, { Component } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Container } from 'react-bootstrap';
|
||||
import { Row } from 'react-bootstrap';
|
||||
import { Col } from 'react-bootstrap';
|
||||
import Backup from './Backup';
|
||||
import Restore from './Restore';
|
||||
|
||||
export default class DataRow extends Component {
|
||||
render() {
|
||||
return (
|
||||
<Container>
|
||||
<Row>
|
||||
<Col sm={{ span: 12 }} className="text-center">
|
||||
<p>Use these buttons to backup/restore your data</p>
|
||||
</Col>
|
||||
</Row>
|
||||
<Row>
|
||||
<Col sm={{ span: 12 }} className="text-center">
|
||||
<Backup />
|
||||
<Restore />
|
||||
</Col>
|
||||
</Row>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (document.getElementById('DataRow')) {
|
||||
ReactDOM.render(<DataRow />, document.getElementById('DataRow'));
|
||||
}
|
||||
Reference in New Issue
Block a user