Skip to content

Commit 363206c

Browse files
committed
frontend/project/settings: fix "is paid student project" logic and banner
1 parent 74ee76e commit 363206c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/packages/frontend/project/settings/body.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const Body: React.FC<ReactProps> = React.memo((props: ReactProps) => {
6363

6464
// this very rarely changes, so just call this once
6565
const isPaidStudentPayProject = useMemo(
66-
() => !redux.getProjectsStore().isPaidStudentPayProject(project_id),
66+
() => redux.getProjectsStore().isPaidStudentPayProject(project_id),
6767
[project_id],
6868
);
6969
const showNonMemberWarning =

src/packages/frontend/project/warnings/no-network.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@
66
import { Alert } from "@cocalc/frontend/antd-bootstrap";
77
import { Icon } from "@cocalc/frontend/components";
88
import { UPGRADE_HINT } from "./non-member";
9-
import { NO_INTERNET } from "@cocalc/frontend/project/trial-banner";
109

1110
export function NoNetworkProjectWarning() {
1211
return (
1312
<Alert bsStyle="warning" style={{ margin: "15px" }}>
1413
<h4>
1514
<Icon name="exclamation-triangle" /> Warning: this project{" "}
16-
<strong>does not have full internet access</strong>
15+
<strong>does not have full internet access</strong>.
1716
</h4>
18-
<p>
19-
Projects without internet {NO_INTERNET}. {UPGRADE_HINT}
20-
</p>
17+
<p>{UPGRADE_HINT}</p>
2118
</Alert>
2219
);
2320
}

src/packages/frontend/projects/projects-nav.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { COLORS } from "@cocalc/util/theme";
3030
import { CSSProperties, useMemo, useState } from "react";
3131
import { useProjectState } from "../project/page/project-state-hook";
3232
import { useProjectHasInternetAccess } from "../project/settings/has-internet-access-hook";
33-
import { NO_INTERNET } from "../project/trial-banner";
3433
import { BuyLicenseForProject } from "../site-licenses/purchase/buy-license-for-project";
3534

3635
const PROJECT_NAME_STYLE: CSSProperties = {
@@ -137,7 +136,7 @@ function ProjectTab({ project_id }: ProjectTabProps) {
137136
return (
138137
<>
139138
<div style={fontStyle}>
140-
This project does not have access to the internet: {NO_INTERNET}.
139+
This project does not have access to the internet.
141140
{onKucalc && (
142141
<>
143142
{" "}

0 commit comments

Comments
 (0)