Skip to content

Commit

Permalink
Fix styling issue in LoginPage.tsx and add toast message in ExportUti…
Browse files Browse the repository at this point in the history
…ls.tsx
  • Loading branch information
work7z committed Apr 19, 2024
1 parent ca980a7 commit 2dd6763
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function LoginPage(props: { passClz: string, type: string }) {
// }

}}>
<CardPanel className={'p-4 py-8 ' + props.passClz}>
<CardPanel className={'p-4 py-8 mt-20' + props.passClz}>
<div className='mx-20 '>
<div className='text-2xl mb-4 font-bold'>
{Dot("oeaSx7ir8", "Welcome back to LafTools")}
Expand Down
2 changes: 2 additions & 0 deletions modules/web2/app/[lang]/client/src/utils/ExportUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import _ from "lodash";
import TokenUtils from "./TokenUtils";
import TranslationUtils from "./cTranslationUtils";

// TODO: need to use this as toast: ``npm install sonner``

const exportUtils = {
useLoadDotCountCpt: () => {
return exportUtils.useSelector(v => {
Expand Down
2 changes: 1 addition & 1 deletion modules/web2/app/[lang]/client/src/utils/TokenUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const TokenUtils = {
return ''
},
clearLocalUserId() {
// localStorage.removeItem(USER_TOKEN_LOCAL_ID);
// localStorage.removeItem(USER_TOKEN_LOCAL_ID);w
},
setLocalUserId(str: string) {
// localStorage.setItem(USER_TOKEN_LOCAL_ID, str);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FN_GetDispatch } from "@/app/[lang]/client/src/nocycle";
import LocalStateSlice from "@/app/[lang]/client/src/reducers/state/localStateSlice";
import exportUtils from "@/app/[lang]/client/src/utils/ExportUtils";
import { useEffect, useState } from "react";
import $ from 'jquery'

export type ThemeType = "light" | "dark";
const key = 'laftools-theme'
Expand Down

0 comments on commit 2dd6763

Please sign in to comment.