Skip to content

Commit

Permalink
run prettier again
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Jan 25, 2024
1 parent ab2ae95 commit 55db08a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
7 changes: 5 additions & 2 deletions web/src/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@ const Root = () => {
shouldShowClusterUpgradeModal: boolean
) => {
setState({
shouldShowClusterUpgradeModal: shouldShowClusterUpgradeModal,
shouldShowClusterUpgradeModal:
shouldShowClusterUpgradeModal,
});
}}
/>
Expand All @@ -732,7 +733,9 @@ const Root = () => {
isEmbeddedCluster={Boolean(
state.adminConsoleMetadata?.isEmbeddedCluster
)}
setShouldShowClusterUpgradeModal={(showUpgradeModal: boolean) => {
setShouldShowClusterUpgradeModal={(
showUpgradeModal: boolean
) => {
setState({
shouldShowClusterUpgradeModal: showUpgradeModal,
});
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/apps/AppDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ type Props = {
refetchAppMetadata: () => void;
snapshotInProgressApps: string[];
isEmbeddedCluster: boolean;
setShouldShowClusterUpgradeModal: (shouldShowClusterUpgradeModal: boolean) => void;
setShouldShowClusterUpgradeModal: (
shouldShowClusterUpgradeModal: boolean
) => void;
};

type State = {
Expand Down
16 changes: 7 additions & 9 deletions web/src/components/clusters/EmbeddedClusterUpgrading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ interface Props {

const EmbeddedClusterUpgrading = (props: Props) => {
const ping = async () => {
await fetch(
`${process.env.API_ENDPOINT}/ping`,
{
headers: {
"Content-Type": "application/json",
},
credentials: "include",
})
await fetch(`${process.env.API_ENDPOINT}/ping`, {
headers: {
"Content-Type": "application/json",
},
credentials: "include",
})
.then(async (res) => {
if (res.status === 401) {
Utilities.logoutUser();
Expand Down Expand Up @@ -51,4 +49,4 @@ const EmbeddedClusterUpgrading = (props: Props) => {
);
};

export default EmbeddedClusterUpgrading;
export default EmbeddedClusterUpgrading;

0 comments on commit 55db08a

Please sign in to comment.