pl-fe: migrate /api/v*/instance to tanstack query
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { useInstance } from 'pl-fe/api/hooks/instance/use-instance';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Card, { CardTitle } from 'pl-fe/components/ui/card';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useInstance } from 'pl-fe/hooks/use-instance';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
|
||||
/** Prompts logged-out users to log in when viewing a thread. */
|
||||
const ThreadLoginCta: React.FC = () => {
|
||||
const instance = useInstance();
|
||||
const { data: instance } = useInstance();
|
||||
const { displayCta } = usePlFeConfig();
|
||||
|
||||
if (!displayCta) return null;
|
||||
|
||||
Reference in New Issue
Block a user