Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix auth messages in 'create atbd' pages #570

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/assets/scripts/a11n/forbidden.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Link } from '../styles/clean/link';
import { useUser } from '../context/user';

function Forbidden() {
const user = useUser();
const { isLogged } = useUser();

return (
<App pageTitle='Forbidden'>
Expand All @@ -29,7 +29,7 @@ function Forbidden() {
<ContentBlock>
<Prose>
<p>You don&apos;t have access to this page!</p>
{user.isLogged ? (
{isLogged ? (
<p>
If you think this is a mistake let us know via{' '}
<a href='mailto:' title='Send us an email'>
Expand Down
4 changes: 2 additions & 2 deletions app/assets/scripts/components/new-atbd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ const FeedbackLink = (props) => (

function NewAtbd() {
const [showMoreInfo, setShowMoreInfo] = React.useState(false);
const { user } = useUser();
const { isLogged } = useUser();

return (
<App pageTitle='New ATBD'>
<PageContent>
<Header>
<h1>ATBD Creation Choices</h1>
{!user.isLogged && (
{!isLogged && (
<Feedback>
<a href={getHostedAuthUiUrl('signup')}>Sign up</a> now to get
started!
Expand Down
Loading