Skip to content

Commit

Permalink
ran formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
PepperLola committed Jul 31, 2024
1 parent 1377a8d commit ee6cf47
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions fission/src/ui/modals/APSManagementModal.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React, { useState } from "react"
import Modal, { ModalPropsImpl } from "@/components/Modal"
import Stack, { StackDirection } from "@/components/Stack"
import Label, { LabelSize } from "@/components/Label"
import { HiUser } from "react-icons/hi"
import APS from "@/aps/APS"

const APSManagementModal: React.FC<ModalPropsImpl> = ({ modalId }) => {
const [userInfo, setUserInfo] = useState(APS.userInfo)
const [userInfo, _] = useState(APS.userInfo)
return (
<Modal name={userInfo?.name ?? "Not signed in"} icon={
userInfo?.picture ?
<img src={userInfo?.picture} className="h-10 rounded-full" /> :
<HiUser />
} modalId={modalId} acceptName="Logout" onAccept={() => {
APS.logout()
}}>
<Stack direction={StackDirection.Vertical} spacing={10}>
</Stack>
<Modal
name={userInfo?.name ?? "Not signed in"}
icon={userInfo?.picture ? <img src={userInfo?.picture} className="h-10 rounded-full" /> : <HiUser />}
modalId={modalId}
acceptName="Logout"
onAccept={() => {
APS.logout()
}}
>
<Stack direction={StackDirection.Vertical} spacing={10}></Stack>
</Modal>
)
}
Expand Down

0 comments on commit ee6cf47

Please sign in to comment.