From ee93168028eaf4fa20fecffc00b1295ff9872979 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Wed, 1 Dec 2021 17:37:37 -0600 Subject: [PATCH] Clean up contact utility file name --- ts/components/conversation/ContactDetail.tsx | 2 +- ts/components/conversation/EmbeddedContact.tsx | 4 ++-- .../conversation/{_contactUtil.tsx => contactUtil.tsx} | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) rename ts/components/conversation/{_contactUtil.tsx => contactUtil.tsx} (97%) diff --git a/ts/components/conversation/ContactDetail.tsx b/ts/components/conversation/ContactDetail.tsx index 0ee7e40e0d..1a195d2bb4 100644 --- a/ts/components/conversation/ContactDetail.tsx +++ b/ts/components/conversation/ContactDetail.tsx @@ -16,7 +16,7 @@ import { renderAvatar, renderContactShorthand, renderName, -} from './_contactUtil'; +} from './contactUtil'; import type { LocalizerType } from '../../types/Util'; diff --git a/ts/components/conversation/EmbeddedContact.tsx b/ts/components/conversation/EmbeddedContact.tsx index 7cf1041143..660728c480 100644 --- a/ts/components/conversation/EmbeddedContact.tsx +++ b/ts/components/conversation/EmbeddedContact.tsx @@ -1,4 +1,4 @@ -// Copyright 2018-2020 Signal Messenger, LLC +// Copyright 2018-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; @@ -11,7 +11,7 @@ import { renderAvatar, renderContactShorthand, renderName, -} from './_contactUtil'; +} from './contactUtil'; export type Props = { contact: EmbeddedContactType; diff --git a/ts/components/conversation/_contactUtil.tsx b/ts/components/conversation/contactUtil.tsx similarity index 97% rename from ts/components/conversation/_contactUtil.tsx rename to ts/components/conversation/contactUtil.tsx index 817fcc9307..3daa99f0cd 100644 --- a/ts/components/conversation/_contactUtil.tsx +++ b/ts/components/conversation/contactUtil.tsx @@ -12,8 +12,6 @@ import { AvatarColors } from '../../types/Colors'; import type { EmbeddedContactType } from '../../types/EmbeddedContact'; import { getName } from '../../types/EmbeddedContact'; -// This file starts with _ to keep it from showing up in the StyleGuide. - export function renderAvatar({ contact, i18n,