Skip to content

Commit

Permalink
fix(app/renderer): fix linter warnings that causes CI test build failing
Browse files Browse the repository at this point in the history
  • Loading branch information
roldanjr committed Jan 30, 2023
1 parent 3f0fee2 commit 26edd59
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { compactRoutes, routes } from "config";
import { useSelector } from "react-redux";
import { AppStateTypes } from "store";

export default () => {
export default function App() {
const settings = useSelector(
(state: AppStateTypes) => state.settings
);
Expand Down Expand Up @@ -51,4 +51,4 @@ export default () => {
</CounterProvider>
</ThemeProvider>
);
};
}
4 changes: 2 additions & 2 deletions app/renderer/src/routes/Config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import ConfigHeader from "./ConfigHeader";

export * from "./ConfigSlider";

export default () => {
export default function Config() {
return (
<StyledConfig>
<ConfigHeader />
<SliderSection />
<SpecialBreakMemo />
</StyledConfig>
);
};
}
4 changes: 2 additions & 2 deletions app/renderer/src/routes/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ShortcutSection from "./ShortcutSection";
import StickySection from "./StickySection";
import SettingHeader from "./SettingHeader";

export default () => {
export default function Settings() {
const alertState = getFromStorage("alert") || null;

const [alert, setAlert] = useState(alertState);
Expand All @@ -35,4 +35,4 @@ export default () => {
<StickySection />
</StyledSettings>
);
};
}
4 changes: 2 additions & 2 deletions app/renderer/src/routes/Tasks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { AppStateTypes, addTaskList, dragList } from "store";
import TaskFormButton from "./TaskFormButton";
import TaskInnerList from "./TaskInnerList";

export default () => {
export default function Tasks() {
const tasks = useSelector((state: AppStateTypes) => state.tasks);

const dispatch = useDispatch();
Expand Down Expand Up @@ -95,4 +95,4 @@ export default () => {
</StyledTaskMain>
</DragDropContext>
);
};
}
4 changes: 2 additions & 2 deletions app/renderer/src/routes/Timer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Control from "./Control";
import Counter from "./Counter";
import PriorityCard from "./PriorityCard";

export default () => {
export default function Timer() {
const compactMode = useSelector(
(state: AppStateTypes) => state.settings.compactMode
);
Expand All @@ -24,4 +24,4 @@ export default () => {
<Control resetTimerAction={onResetCallback} />
</StyledTimer>
);
};
}

0 comments on commit 26edd59

Please sign in to comment.