-
Notifications
You must be signed in to change notification settings - Fork 1
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
feature/BQ-253 into [email protected] 🧊 partner pages #48
base: [email protected]
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -26,7 +26,7 @@ const OrganizationProfileTariffPage = async ({ params }: OrganizationProfileTari | |||
const getTariffByLegalEntityIdResponse = await getTariffByLegalEntityId({ | |||
params: { legalEntityId: params.organizationId }, | |||
config: { | |||
cache: 'no-cache' | |||
cache: 'no-store' |
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.
это я описался? Везде no-store вроде а я no-cache написал
interface OrganizationPageLayoutProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
const PartnerLayout = async ({ children }: OrganizationPageLayoutProps) => { |
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.
PartnerLayoutProps
}: UseEditOrganizationTariffFormParams) => { | ||
const router = useRouter(); | ||
const queryClient = useQueryClient(); | ||
const editOrganizationForm = useForm<EditOrganizationTariffSchema>({ |
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.
editOrganizationTariffForm
, надо заменить в обоих местах
const isPartner = request.url.includes(ROUTES.PARTNER.ROOT); | ||
|
||
if (!isAuthenticated && (isOrg || isPartner)) { | ||
console.log('@.2 !isAuthenticated && isOrg, org or partner page requires auth'); |
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.
а зачем отдельно обрабатывать кесы с орг и партнером?
@@ -0,0 +1,61 @@ | |||
import { NotebookTextIcon, TrendingUpIcon, UsersRoundIcon } from 'lucide-react'; |
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.
все таки без копипасты тут никак как я понимаю
const getOrganizationByIdResponse = await getOrganizationById({ | ||
params: { id: getOrganizationCurrentResponse.id }, | ||
config: { cache: 'no-store' } | ||
}); |
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.
бесполезный запрос, мы же в запросе выше получаем ту же инфу что и здесь. Либо неправильно типизирован запрос getOrganizationCurrent
const getOrganizationByIdResponse = await getOrganizationById({ | ||
params: { id: getOrganizationCurrentResponse.id }, | ||
config: { cache: 'no-store' } | ||
}); |
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.
бесполезный запрос, мы же в запросе выше получаем ту же инфу что и здесь. Либо неправильно типизирован запрос getOrganizationCurrent
@@ -24,8 +31,8 @@ export const getUserMeConfig: RestRequestConfig = { | |||
}, | |||
{ | |||
entities: { | |||
query: { | |||
email: '[email protected]' |
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.
а как мы до этого квери передовали? Надо убрать тогда теперь это прокидывание кверей
No description provided.