mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
[CORL-130] Handle non-visible comment status (#2213)
* feat: support blue color in message * feat: Show message when comment is in review * feat: handle non-visible comment status * test: add feature test for handling invisible comment status * fix: apply review * chore: better comment :-) * Update isVisible.ts
This commit is contained in:
@@ -4,15 +4,13 @@ import { Environment } from "relay-runtime";
|
||||
import {
|
||||
commitMutationPromiseNormalized,
|
||||
createMutationContainer,
|
||||
MutationInput,
|
||||
MutationResponsePromise,
|
||||
} from "talk-framework/lib/relay";
|
||||
import { Omit } from "talk-framework/types";
|
||||
|
||||
import { UpdateSettingsMutation as MutationTypes } from "talk-admin/__generated__/UpdateSettingsMutation.graphql";
|
||||
|
||||
export type UpdateSettingsInput = Omit<
|
||||
MutationTypes["variables"]["input"],
|
||||
"clientMutationId"
|
||||
>;
|
||||
export type UpdateSettingsInput = MutationInput<MutationTypes>;
|
||||
|
||||
const mutation = graphql`
|
||||
mutation UpdateSettingsMutation($input: UpdateSettingsInput!) {
|
||||
@@ -53,4 +51,4 @@ export const withUpdateSettingsMutation = createMutationContainer(
|
||||
|
||||
export type UpdateSettingsMutation = (
|
||||
input: UpdateSettingsInput
|
||||
) => Promise<MutationTypes["response"]["updateSettings"]>;
|
||||
) => MutationResponsePromise<MutationTypes, "updateSettings">;
|
||||
|
||||
Reference in New Issue
Block a user