Skip to content

Commit

Permalink
update colors and vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckner committed Dec 10, 2023
1 parent 5b7c822 commit c33f761
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Board/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AddTask from "./AddTask";
import TaskItem from "./TaskItem";
import { addTask, appData, deleteTask } from "redux/boardSlice";
import { Droppable, DragDropContext } from "@hello-pangea/dnd";
import { randomColor } from "utilis";
// import { randomColor } from "utilis";

import { v4 as uuidv4 } from "uuid";

Expand Down Expand Up @@ -64,7 +64,7 @@ export default function Index() {
? "hsla(193, 75%, 59%,1)"
: index === 1
? "hsla(249, 83% ,70%, 1)"
: randomColor(),
: "hsla(" + 50 * index + ", 83% ,70%, 1)",
}}
/>
{item.name} ({item.tasks.length})
Expand Down
4 changes: 2 additions & 2 deletions src/utilis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const loadState = () => {
active: data.find((item: IBoard, index: number) => index === 0),
};
try {
// const serializedState = localStorage.getItem("boarddata");
const serializedState = null;
const serializedState = localStorage.getItem("boarddata");
// const serializedState = null;
if (serializedState === null) {
return initialState;
}
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import eslint from 'vite-plugin-eslint'
export default defineConfig(() => {
const config = {
base: `/automation-capability-matrix/`,
server: {
port: 3000,
},
plugins: [
tsconfigPaths(),
react(),
Expand Down

0 comments on commit c33f761

Please sign in to comment.