Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed Sep 15, 2023
1 parent 4c5a224 commit 8e326a8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions agenta-web/src/components/AppSelector/AppSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
import { useState, useEffect } from "react"
import { useRouter } from "next/router"
import { PlusOutlined } from "@ant-design/icons"
import { Input, Modal, ConfigProvider, theme, Spin, Card, Button, notification, Divider } from "antd"
import {useState, useEffect} from "react"
import {useRouter} from "next/router"
import {PlusOutlined} from "@ant-design/icons"
import {Input, Modal, ConfigProvider, theme, Spin, Card, Button, notification, Divider} from "antd"
import AppCard from "./AppCard"
import { Template, GenericObject } from "@/lib/Types"
import { useAppTheme } from "../Layout/ThemeContextProvider"
import { CloseCircleFilled } from "@ant-design/icons"
import {Template, GenericObject} from "@/lib/Types"
import {useAppTheme} from "../Layout/ThemeContextProvider"
import {CloseCircleFilled} from "@ant-design/icons"
import TipsAndFeatures from "./TipsAndFeatures"
import Welcome from "./Welcome"
import { isAppNameInputValid } from "@/lib/helpers/utils"
import { createAndStartTemplate, fetchApps, getTemplates } from "@/lib/services/api"
import {isAppNameInputValid} from "@/lib/helpers/utils"
import {createAndStartTemplate, fetchApps, getTemplates} from "@/lib/services/api"
import AddNewAppModal from "./modals/AddNewAppModal"
import AddAppFromTemplatedModal from "./modals/AddAppFromTemplateModal"
import MaxAppModal from "./modals/MaxAppModal"
import WriteOwnAppModal from "./modals/WriteOwnAppModal"
import { createUseStyles } from "react-jss"
import { getErrorMessage } from "@/lib/helpers/errorHandler"
import {createUseStyles} from "react-jss"
import {getErrorMessage} from "@/lib/helpers/errorHandler"

type StyleProps = {
themeMode: "dark" | "light"
}

const useStyles = createUseStyles({
container: ({ themeMode }: StyleProps) => ({
container: ({themeMode}: StyleProps) => ({
marginTop: 10,
width: "100%",
color: themeMode === "dark" ? "#fff" : "#000",
}),
cardsList: ({ themeMode }: StyleProps) => ({
cardsList: ({themeMode}: StyleProps) => ({
display: "flex",
flexWrap: "wrap",
gap: 12,
Expand Down Expand Up @@ -60,7 +60,7 @@ const useStyles = createUseStyles({
fontSize: 20,
color: "red",
},
divider: ({ themeMode }: StyleProps) => ({
divider: ({themeMode}: StyleProps) => ({
marginTop: 0,
borderColor: themeMode === "dark" ? "rgba(256, 256, 256, 0.2)" : "rgba(5, 5, 5, 0.15)",
}),
Expand All @@ -86,8 +86,8 @@ const useStyles = createUseStyles({

const AppSelector: React.FC = () => {
const router = useRouter()
const { appTheme } = useAppTheme()
const classes = useStyles({ themeMode: appTheme } as StyleProps)
const {appTheme} = useAppTheme()
const classes = useStyles({themeMode: appTheme} as StyleProps)
const [isCreateAppModalOpen, setIsCreateAppModalOpen] = useState(false)
const [isCreateAppFromTemplateModalOpen, setIsCreateAppFromTemplateModalOpen] = useState(false)
const [isWriteAppModalOpen, setIsWriteAppModalOpen] = useState(false)
Expand Down Expand Up @@ -274,7 +274,7 @@ const AppSelector: React.FC = () => {
})
}

const { data, error, isLoading } = fetchApps()
const {data, error, isLoading} = fetchApps()
useEffect(() => {
setTimeout(() => {
if (data) {
Expand Down

0 comments on commit 8e326a8

Please sign in to comment.