Skip to content

Commit

Permalink
Replace MetaTags with Metadata component (#11564)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmoiseev committed Sep 15, 2024
1 parent d18da85 commit 7d98286
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
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

0 comments on commit 7d98286

Please sign in to comment.