| | |
| | | |
| | | export type ICardViewProps = { |
| | | appId: string |
| | | isInPanel?: boolean |
| | | className?: string |
| | | } |
| | | |
| | | const CardView: FC<ICardViewProps> = ({ appId, isInPanel, className }) => { |
| | | const CardView: FC<ICardViewProps> = ({ appId }) => { |
| | | const { t } = useTranslation() |
| | | const { notify } = useContext(ToastContext) |
| | | const appDetail = useAppStore(state => state.appDetail) |
| | |
| | | return <Loading /> |
| | | |
| | | return ( |
| | | <div className={className || 'mb-6 grid w-full grid-cols-1 gap-6 xl:grid-cols-2'}> |
| | | <div className="grid gap-6 grid-cols-1 xl:grid-cols-2 w-full mb-6"> |
| | | <AppCard |
| | | appInfo={appDetail} |
| | | cardType="webapp" |
| | | isInPanel={isInPanel} |
| | | onChangeStatus={onChangeSiteStatus} |
| | | onGenerateCode={onGenerateCode} |
| | | onSaveSiteConfig={onSaveSiteConfig} |
| | |
| | | <AppCard |
| | | cardType="api" |
| | | appInfo={appDetail} |
| | | isInPanel={isInPanel} |
| | | onChangeStatus={onChangeApiStatus} |
| | | /> |
| | | </div> |