-
Notifications
You must be signed in to change notification settings - Fork 0
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
ログイン/サインイン・ログアウト画面の実装 #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
疑問点をコメントしたので、ご回答お願いします。
@@ -1 +1,2 @@ | |||
/// <reference types="react-scripts" /> | |||
declare module '@heroicons/*'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この行について、調査したのですがどのような意味を持つ追加であるのか理解できませんでした。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React v6だと、Udemyに記載されている書き方だと該当のiconを使えなかったのでその対応として書きましたが、結果不必要だったためその消し忘れです。
エラーの原因は、iconの名称が変わっているだけだったので、正しい名称のicon名を提供元から探してimportするicon名を変えています。以下が該当行です。
import { CheckBadgeIcon } from "@heroicons/react/24/solid";
import { ArrowPathIcon } from "@heroicons/react/24/solid";
ちなみに、react-app-env.d.tsはsvgやjpegなどを読み込めるようにするためのファイルらしいですよ
react-app-env.d.tsについて
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご丁寧にありがとうございます。
承知しました。
FARM Stack web app | ||
</span> | ||
</div> | ||
<h2 className="my-6">{isLogin ? 'Login' : 'Create a new account'}</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
”と'が混在しています。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
クラスタグはダブルクォート、文中で使う文字はシングルクォートで使用しているため、すみわけができているので問題ないという認識です
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
承知しました。問題ないです。
ユーザー登録時に以下のwarningが出ましたが、問題ないでしょうか。 |
説明
以下の2画面を作成
ログイン時動作不良を確認したため、
route_auth.py
とschemas.py
を修正確認したこと