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

Replace MetaTags with Metadata component #11564

Merged
merged 2 commits into from
Sep 15, 2024
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
16 changes: 8 additions & 8 deletions docs/docs/how-to/dbauth-passwordless.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ import {
FieldError,
} from '@redwoodjs/forms'
import { navigate, routes, Link } from '@redwoodjs/router'
import { MetaTags, useMutation } from '@redwoodjs/web'
import { Metadata, useMutation } from '@redwoodjs/web'
import { Toaster, toast } from '@redwoodjs/web/toast'
const GENERATE_LOGIN_TOKEN = gql`
mutation generateLoginToken($email: String!) {
Expand Down Expand Up @@ -259,7 +259,7 @@ const LoginPasswordlessForm = ({ setWaitingForCode, setEmail }) => {

return (
<>
<MetaTags title="Login" />
<Metadata title="Login" />
<main className="rw-main">
<Toaster toastOptions={{ className: 'rw-toast', duration: 6000 }} />
<div className="rw-scaffold rw-login-container">
Expand Down Expand Up @@ -339,7 +339,7 @@ import {
FieldError,
} from '@redwoodjs/forms'
import { navigate, routes, Link } from '@redwoodjs/router'
import { MetaTags, useMutation } from '@redwoodjs/web'
import { Metadata, useMutation } from '@redwoodjs/web'
import { Toaster, toast } from '@redwoodjs/web/toast'

import { useAuth } from 'src/auth'
Expand All @@ -366,7 +366,7 @@ const LoginPasswordlessTokenForm = ({ setWaitingForCode, email, code }) => {

return (
<>
<MetaTags title="Login" />
<Metadata title="Login" />
<main className="rw-main">
<Toaster toastOptions={{ className: 'rw-toast', duration: 6000 }} />
<div className="rw-scaffold rw-login-container">
Expand Down Expand Up @@ -460,7 +460,7 @@ yarn rw g page LoginPasswordless
import { useEffect, useState } from 'react'

import { useLocation } from '@redwoodjs/router'
import { MetaTags } from '@redwoodjs/web'
import { Metadata } from '@redwoodjs/web'

import LoginPasswordlessForm from 'src/components/LoginPasswordlessForm/LoginPasswordlessForm'
import LoginPasswordlessTokenForm from 'src/components/LoginPasswordlessTokenForm/LoginPasswordlessTokenForm'
Expand Down Expand Up @@ -488,7 +488,7 @@ const LoginPasswordlessPage = () => {

return (
<>
<MetaTags
<Metadata
title="LoginPasswordless"
description="LoginPasswordless page"
/>
Expand Down Expand Up @@ -530,7 +530,7 @@ import {
Submit,
} from '@redwoodjs/forms'
import { Link, navigate, routes } from '@redwoodjs/router'
import { MetaTags } from '@redwoodjs/web'
import { Metadata } from '@redwoodjs/web'
import { toast, Toaster } from '@redwoodjs/web/toast'

import { useAuth } from 'src/auth'
Expand Down Expand Up @@ -577,7 +577,7 @@ const SignupPage = () => {

return (
<>
<MetaTags title="Signup" />
<Metadata title="Signup" />

<main className="rw-main">
<Toaster toastOptions={{ className: 'rw-toast', duration: 6000 }} />
Expand Down
16 changes: 8 additions & 8 deletions docs/versioned_docs/version-8.1/how-to/dbauth-passwordless.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ import {
FieldError,
} from '@redwoodjs/forms'
import { navigate, routes, Link } from '@redwoodjs/router'
import { MetaTags, useMutation } from '@redwoodjs/web'
import { Metadata, useMutation } from '@redwoodjs/web'
import { Toaster, toast } from '@redwoodjs/web/toast'
const GENERATE_LOGIN_TOKEN = gql`
mutation generateLoginToken($email: String!) {
Expand Down Expand Up @@ -259,7 +259,7 @@ const LoginPasswordlessForm = ({ setWaitingForCode, setEmail }) => {

return (
<>
<MetaTags title="Login" />
<Metadata title="Login" />
<main className="rw-main">
<Toaster toastOptions={{ className: 'rw-toast', duration: 6000 }} />
<div className="rw-scaffold rw-login-container">
Expand Down Expand Up @@ -339,7 +339,7 @@ import {
FieldError,
} from '@redwoodjs/forms'
import { navigate, routes, Link } from '@redwoodjs/router'
import { MetaTags, useMutation } from '@redwoodjs/web'
import { Metadata, useMutation } from '@redwoodjs/web'
import { Toaster, toast } from '@redwoodjs/web/toast'

import { useAuth } from 'src/auth'
Expand All @@ -366,7 +366,7 @@ const LoginPasswordlessTokenForm = ({ setWaitingForCode, email, code }) => {

return (
<>
<MetaTags title="Login" />
<Metadata title="Login" />
<main className="rw-main">
<Toaster toastOptions={{ className: 'rw-toast', duration: 6000 }} />
<div className="rw-scaffold rw-login-container">
Expand Down Expand Up @@ -460,7 +460,7 @@ yarn rw g page LoginPasswordless
import { useEffect, useState } from 'react'

import { useLocation } from '@redwoodjs/router'
import { MetaTags } from '@redwoodjs/web'
import { Metadata } from '@redwoodjs/web'

import LoginPasswordlessForm from 'src/components/LoginPasswordlessForm/LoginPasswordlessForm'
import LoginPasswordlessTokenForm from 'src/components/LoginPasswordlessTokenForm/LoginPasswordlessTokenForm'
Expand Down Expand Up @@ -488,7 +488,7 @@ const LoginPasswordlessPage = () => {

return (
<>
<MetaTags
<Metadata
title="LoginPasswordless"
description="LoginPasswordless page"
/>
Expand Down Expand Up @@ -530,7 +530,7 @@ import {
Submit,
} from '@redwoodjs/forms'
import { Link, navigate, routes } from '@redwoodjs/router'
import { MetaTags } from '@redwoodjs/web'
import { Metadata } from '@redwoodjs/web'
import { toast, Toaster } from '@redwoodjs/web/toast'

import { useAuth } from 'src/auth'
Expand Down Expand Up @@ -577,7 +577,7 @@ const SignupPage = () => {

return (
<>
<MetaTags title="Signup" />
<Metadata title="Signup" />

<main className="rw-main">
<Toaster toastOptions={{ className: 'rw-toast', duration: 6000 }} />
Expand Down
Loading