fix all lint

This commit is contained in:
Simon Larsen 2023-01-03 15:19:06 +00:00
parent 6b456dda0f
commit 33c20f69f7
4 changed files with 9 additions and 13 deletions

View File

@ -245,7 +245,7 @@ const DashboardHeader: FunctionComponent<ComponentProps> = (
props.selectedProject.paymentProviderPlanId,
getAllEnvVars()
) ? (
<Upgrade projectId={props.selectedProject.id} />
<Upgrade />
) : (
<></>
)}

View File

@ -2,7 +2,6 @@ import React, { FunctionComponent, ReactElement, useState } from 'react';
import { IconProp } from 'CommonUI/src/Components/Icon/Icon';
import ModelFormModal from 'CommonUI/src/Components/ModelFormModal/ModelFormModal';
import Project from 'Model/Models/Project';
import ObjectID from 'Common/Types/ObjectID';
import Navigation from 'CommonUI/src/Utils/Navigation';
import { FormType } from 'CommonUI/src/Components/Forms/ModelForm';
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
@ -10,13 +9,9 @@ import SubscriptionPlan from 'Common/Types/Billing/SubscriptionPlan';
import { RadioButton } from 'CommonUI/src/Components/RadioButtons/RadioButtons';
import Button, { ButtonStyleType } from 'CommonUI/src/Components/Button/Button';
import { getAllEnvVars } from 'CommonUI/src/Config';
import DashboardNavigation from '../../Utils/Navigation';
export interface ComponentProps {
projectId: ObjectID;
}
const Upgrade: FunctionComponent<ComponentProps> = (
props: ComponentProps
): ReactElement => {
const Upgrade: FunctionComponent = (): ReactElement => {
const [showModal, setShowModal] = useState<boolean>(false);
const [isSubsriptionPlanYearly, setIsSubscriptionPlanYearly] =
useState<boolean>(true);
@ -39,7 +34,7 @@ const Upgrade: FunctionComponent<ComponentProps> = (
modelType={Project}
title="Change Plan"
name="Change Plan"
modelIdToEdit={props.projectId}
modelIdToEdit={DashboardNavigation.getProjectId()!}
onClose={() => {
setShowModal(false);
}}

View File

@ -76,7 +76,7 @@ const StatusPageDelete: FunctionComponent<PageComponentProps> = (
item: StatusPagePrivateUser
): Promise<StatusPagePrivateUser> => {
item.statusPageId = modelId;
item.projectId = DashboardNavigation.getProjectId();
item.projectId = DashboardNavigation.getProjectId()!;
return Promise.resolve(item);
}}
cardProps={{

View File

@ -13,11 +13,12 @@ sudo docker compose pull
# Create database if it does not exists
sudo docker compose up -d postgres && sleep 30 && sudo docker compose exec postgres psql postgresql://$DATABASE_USERNAME:$DATABASE_PASSWORD@localhost:5432/postgres -c 'CREATE DATABASE oneuptimedb' || echo "Database created"
# echo "Checking if async migrations are up to date"
# sudo -E docker compose run init
# Start all containers.
npm run start
# Restart nginx just incase the config changes.
sudo docker compose restart nginx
echo "We will need to wait ~5-10 minutes for things to settle down, migrations to finish, and TLS certs to be issued"
echo ""
echo "⏳ Waiting for OneUptime to boot (this will take a few minutes)"