Skip to content

Commit

Permalink
Updated Prettier to v3.0.0 (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
bexsoft committed Jul 18, 2023
1 parent 5a484fc commit efeae72
Show file tree
Hide file tree
Showing 130 changed files with 839 additions and 827 deletions.
2 changes: 1 addition & 1 deletion web-app/package.json
Expand Up @@ -74,7 +74,7 @@
"@types/superagent": "^4.1.18",
"@types/webpack-env": "^1.18.1",
"@types/websocket": "^1.0.0",
"prettier": "^2.8.8",
"prettier": "3.0.0",
"react-scripts": "5.0.1",
"testcafe": "2.6.2",
"typescript": "^4.4.3"
Expand Down
2 changes: 1 addition & 1 deletion web-app/public/index.html
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/MainRouter.tsx
Expand Up @@ -24,7 +24,7 @@ import { baseUrl } from "./history";
const Login = React.lazy(() => import("./screens/LoginPage/LoginPage"));
const Logout = React.lazy(() => import("./screens/LogoutPage/LogoutPage"));
const LoginCallback = React.lazy(
() => import("./screens/LoginPage/LoginCallback")
() => import("./screens/LoginPage/LoginCallback"),
);

const MainRouter = () => {
Expand Down
4 changes: 2 additions & 2 deletions web-app/src/ProtectedRoutes.tsx
Expand Up @@ -66,7 +66,7 @@ const ProtectedRoute = ({ Component }: ProtectedRouteProps) => {

if (res.customStyles && res.customStyles !== "") {
const overrideColorVariants = getOverrideColorVariants(
res.customStyles
res.customStyles,
);

if (overrideColorVariants !== false) {
Expand All @@ -91,7 +91,7 @@ const ProtectedRoute = ({ Component }: ProtectedRouteProps) => {
undefined,
{
"X-Anonymous": "1",
}
},
)
.then((value) => {
dispatch(setAnonymousMode());
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/StyleHandler.tsx
Expand Up @@ -43,7 +43,7 @@ interface IStyleHandler {

const StyleHandler = ({ children }: IStyleHandler) => {
const colorVariants = useSelector(
(state: AppState) => state.system.overrideStyles
(state: AppState) => state.system.overrideStyles,
);

let thm = theme;
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/api/index.ts
Expand Up @@ -29,7 +29,7 @@ api.request = async <T = any, E = any>({
};

export function CommonAPIValidation<D, E>(
res: HttpResponse<D, E>
res: HttpResponse<D, E>,
): HttpResponse<D, E> {
const err = res.error as Error;
if (err && err.code === 403 && err.message === "invalid session") {
Expand Down

0 comments on commit efeae72

Please sign in to comment.