Skip to content

Commit

Permalink
Make a couple minor ordering, formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssciolla committed Jun 13, 2022
1 parent 0a1fb39 commit 09583dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/app/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import Cookies from 'js-cookie';

import { Tool } from './interfaces';

export const getCSRFToken = (): string | undefined => Cookies.get('csrftoken');

const API_BASE = '/api';
const JSON_MIME_TYPE = 'application/json';

Expand All @@ -13,6 +11,8 @@ const BASE_MUTATION_HEADERS: HeadersInit = {
'X-Requested-With': 'XMLHttpRequest'
};

const getCSRFToken = (): string | undefined => Cookies.get('csrftoken');

const createErrorMessage = async (res: Response): Promise<string> => {
let errorBody;
try {
Expand Down
3 changes: 1 addition & 2 deletions frontend/app/components/ToolCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { useMutation } from 'react-query';
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import {
Card, CardActions, CardContent, CardMedia, Collapse, Grid, IconButton,
LinearProgress, Typography
Card, CardActions, CardContent, CardMedia, Collapse, Grid, IconButton, LinearProgress, Typography
} from '@mui/material';
import { styled } from '@mui/material/styles';

Expand Down

0 comments on commit 09583dd

Please sign in to comment.