1
0
mirror of https://github.com/franjsco/tick3t synced 2025-06-05 22:19:18 +02:00

refactor: change button component

This commit is contained in:
frab1t
2019-05-18 19:27:50 +02:00
parent 66315d2266
commit d6d24bd444
5 changed files with 12 additions and 16 deletions

View File

@ -7,10 +7,10 @@ import {
NavbarBrand, NavbarBrand,
NavbarToggler, NavbarToggler,
Nav, Nav,
NavItem, NavItem
Button
} from 'reactstrap'; } from 'reactstrap';
import Button from '../components/Button';
import './NavBar.css'; import './NavBar.css';
import logo from '../assets/admin.svg'; import logo from '../assets/admin.svg';
@ -75,8 +75,6 @@ class NavBar extends Component {
<NavItem> <NavItem>
<Button <Button
color="primary"
outline
onClick={this.closeNavbar} onClick={this.closeNavbar}
tag={Link} tag={Link}
to="/login" to="/login"

View File

@ -5,11 +5,11 @@ import {
Form, Form,
FormGroup, FormGroup,
Label, Label,
Input, Input
Button
} from 'reactstrap'; } from 'reactstrap';
import Card from '../../components/Card'; import Card from '../../components/Card';
import Button from '../../components/Button';
class Login extends Component { class Login extends Component {
constructor(props) { constructor(props) {
@ -93,7 +93,7 @@ class Login extends Component {
</FormGroup> </FormGroup>
<FormGroup> <FormGroup>
<Button type="submit" outline color="primary">Login</Button> <Button>Login</Button>
</FormGroup> </FormGroup>
</Form> </Form>
</Col> </Col>

View File

@ -2,7 +2,6 @@ import React, { Component } from 'react';
import { Link, Redirect } from 'react-router-dom'; import { Link, Redirect } from 'react-router-dom';
import { import {
Button,
Row, Row,
Col, Col,
Form, Form,
@ -14,6 +13,7 @@ import {
import Card from '../../components/Card'; import Card from '../../components/Card';
import Table from '../../components/Table'; import Table from '../../components/Table';
import DropDown from '../../components/DropDown'; import DropDown from '../../components/DropDown';
import Button from '../../components/Button';
class TicketManager extends Component { class TicketManager extends Component {
@ -196,7 +196,7 @@ class TicketManager extends Component {
</FormGroup> </FormGroup>
<FormGroup row> <FormGroup row>
<Col align="right"> <Col align="right">
<Button type="submit" color="primary">Update Ticket</Button> <Button>Update Ticket</Button>
</Col> </Col>
</FormGroup> </FormGroup>

View File

@ -5,12 +5,12 @@ import {
Form, Form,
FormGroup, FormGroup,
Label, Label,
Input, Input
Button
} from 'reactstrap'; } from 'reactstrap';
import Card from '../../components/Card'; import Card from '../../components/Card';
import DropDown from '../../components/DropDown'; import DropDown from '../../components/DropDown';
import Button from '../../components/Button';
class CreateTicket extends Component { class CreateTicket extends Component {
@ -239,7 +239,7 @@ class CreateTicket extends Component {
<Row form> <Row form>
<Col align="center" md={{ size: 8, offset: 2 }}> <Col align="center" md={{ size: 8, offset: 2 }}>
<FormGroup> <FormGroup>
<Button type="submit" outline color="primary">Open Ticket</Button> <Button>Open Ticket</Button>
</FormGroup> </FormGroup>
</Col> </Col>
</Row> </Row>

View File

@ -1,9 +1,9 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Button } from 'reactstrap';
import Card from '../../components/Card'; import Card from '../../components/Card';
import Logo from '../../components/Logo'; import Logo from '../../components/Logo';
import Button from '../../components/Button';
import logoSVG from '../../assets/assistance.svg'; import logoSVG from '../../assets/assistance.svg';
@ -35,8 +35,6 @@ class CreateTicketCard extends Component {
<Button <Button
tag={Link} tag={Link}
to="/create" to="/create"
color="primary"
outline
> >
Create Ticket Create Ticket
</Button> </Button>