Skip to content

Commit

Permalink
linted for coding styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson-Williams-15 committed Dec 5, 2023
1 parent 48d3537 commit acd517d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions FU.SPA/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function Navbar() {
</div>
<div className="right-content">
<ul>
<CustomLink to="/SignIn">Sign In</CustomLink>
<CustomLink to="/SignUp">Sign Up</CustomLink>
<CustomLink to="/SignIn">Sign In</CustomLink>
<CustomLink to="/SignUp">Sign Up</CustomLink>
</ul>
</div>
</nav>
Expand Down
7 changes: 5 additions & 2 deletions FU.SPA/src/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const config = {
API_URL: window.location.hostname === 'jolly-glacier-0ae92c40f.4.azurestaticapps.net' ? 'https://fuapi.azurewebsites.net/api' : import.meta.env.VITE_API_URL,
API_URL:
window.location.hostname === 'jolly-glacier-0ae92c40f.4.azurestaticapps.net'
? 'https://fuapi.azurewebsites.net/api'
: import.meta.env.VITE_API_URL,
};

export default config;
export default config;
2 changes: 1 addition & 1 deletion FU.SPA/src/services/authService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import config from "../config";
import config from '../config';
const API_BASE_URL = config.API_URL;
const LOCAL_STORAGE_TOKEN_KEY = 'token';

Expand Down
2 changes: 1 addition & 1 deletion FU.SPA/src/services/gameService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import config from "../config";
import config from '../config';
const API_BASE_URL = config.API_URL;

/*
Expand Down
2 changes: 1 addition & 1 deletion FU.SPA/src/services/searchService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import config from "../config";
import config from '../config';
const API_BASE_URL = config.API_URL;

/*
Expand Down
2 changes: 1 addition & 1 deletion FU.SPA/src/services/tagService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import config from "../config";
import config from '../config';
const API_BASE_URL = config.API_URL;

/*
Expand Down
2 changes: 1 addition & 1 deletion FU.SPA/src/services/userService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import AuthService from './authService';

import config from "../config";
import config from '../config';
const API_BASE_URL = config.API_URL;

const getConnectedPosts = async () => {
Expand Down
8 changes: 4 additions & 4 deletions FU.SPA/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"navigationFallback": {
"rewrite": "/index.html"
}
}
"navigationFallback": {
"rewrite": "/index.html"
}
}

0 comments on commit acd517d

Please sign in to comment.