diff --git a/web/src/components/accounts.tsx b/web/src/components/accounts.tsx index 5cb89b4..ec3b9a7 100644 --- a/web/src/components/accounts.tsx +++ b/web/src/components/accounts.tsx @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { PencilFill, Plus, Power } from 'react-bootstrap-icons'; +import { PencilFill, Power } from 'react-bootstrap-icons'; import { AccountOptions } from '../services/accounts'; import RegisterAccount from './registerAccount'; @@ -64,4 +64,4 @@ export default class Account extends Component { ); } -} \ No newline at end of file +} diff --git a/web/src/components/registerAccount.tsx b/web/src/components/registerAccount.tsx index 4bf7132..2c69f19 100644 --- a/web/src/components/registerAccount.tsx +++ b/web/src/components/registerAccount.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React from 'react'; import Offcanvas from './offCanvas'; import AccountForm from './accountForm'; diff --git a/web/src/services/accounts.ts b/web/src/services/accounts.ts index 111979e..fad51f1 100644 --- a/web/src/services/accounts.ts +++ b/web/src/services/accounts.ts @@ -34,9 +34,9 @@ export function getAccount(name: string) { } export function editAccount(options: AccountOptions) { - return axios({ method: 'PUT', url: url(options.login.username), data: options}) + return axios({ method: 'PUT', url: url(options.login.username), data: options }); } export function login(name: string) { return axios({ method: 'POST', url: url(`${name}/login`) }); -} \ No newline at end of file +}