Skip to content

Commit

Permalink
fix: Lint Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed Jun 11, 2024
1 parent 4cd95bf commit b95db3b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion apps/azkaban-admin-ui/src/app/router.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { lazy } from 'react';
import { createHashRouter, RouterProvider } from 'react-router-dom';
import LoginPage from '../features/auth/login/login.page';
import { Redirect } from '../components/widgets/redirect.widget';

// Layouts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function AuthLayout() {
src="/assets/auth-image.jpg"
width="760"
height="1024"
alt="Authentication image"
alt="Authentication"
/>
<img
className="absolute top-1/4 left-0 -translate-x-1/2 ml-8 hidden lg:block"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {

export function Show(props: PropsWithChildren<Props>) {
if (props.show) {
return <>{props.children}</>;
return props.children;
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { Input } from '../../../../components/ui/input';
import { useAuthState } from '../../../../store/auth/auth.hook';
import { useUiState } from '../../../../store/ui/ui.hook';
import { SignInButton } from '../widgets/signin-button';
import { Link } from 'react-router-dom';
import { Button } from '../../../../components/ui/button';

export function AuthLoginForm() {
const { loginUser } = useAuthState();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
export function AuthLoginHeader() {
return (
<h1 className="text-3xl text-slate-800 dark:text-slate-100 font-bold mb-6">
Welcome Back ✨
Welcome Back{' '}
<span role="img" aria-labelledby="Star">
</span>
</h1>
);
}
1 change: 0 additions & 1 deletion apps/azkaban-admin-ui/src/store/auth/auth.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
import { Auth } from '@toxictoast/azkaban-sdk';
import { setUser } from './auth.slice';
import { useDispatch } from 'react-redux';
import { Chainable } from '@toxictoast/azkaban-base-types';

export function useAuthState() {
const dispatch = useDispatch<AppDispatch>();
Expand Down
3 changes: 0 additions & 3 deletions apps/azkaban-admin-ui/src/store/user/user.slice.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { createSlice } from '@reduxjs/toolkit/react';
import { userState } from './user.state';
import { ActionReducerMapBuilder } from '@reduxjs/toolkit';
import { UserModel } from './user.model';

export const userSlice = createSlice({
name: 'user',
initialState: userState,
reducers: {},
extraReducers: (builder: ActionReducerMapBuilder<UserModel>) => {},
});
export default userSlice.reducer;

0 comments on commit b95db3b

Please sign in to comment.