Skip to content

Commit

Permalink
Remove fancy text in submission menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Oct 8, 2024
1 parent 2c9adbd commit 6a3917d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/submission/SubmissionComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { ThumbnailType } from "./ThumbnailComponent";
import { RenderedThumbnailSubmission, ThumbnailDrawerComponent } from "./ThumbnailDrawerComponent";
import { RenderedTitleSubmission, TitleDrawerComponent } from "./TitleDrawerComponent";
import { VideoID } from "../../maze-utils/src/video";
import Config, { UnsubmittedSubmission } from "../config/config";
import Config, { TitleFormatting, UnsubmittedSubmission } from "../config/config";
import { addTitleChangeListener, removeTitleChangeListener } from "../utils/titleBar";
import { toSentenceCase } from "../titles/titleFormatter";
import { formatTitleInternal } from "../titles/titleFormatter";
import { BrandingPreviewComponent } from "./BrandingPreviewComponent";
import { getHash } from "../../maze-utils/src/hash";
import { sendRequestToServer } from "../utils/requests";
Expand Down Expand Up @@ -78,7 +78,7 @@ export const SubmissionComponent = (props: SubmissionComponentProps) => {
const [titles, setTitles] = React.useState<RenderedTitleSubmission[]>([]);
React.useEffect(() => {
(async () => {
const originalTitle = await toSentenceCase(getCurrentPageTitle() || chrome.i18n.getMessage("OriginalTitle"), false);
const originalTitle = await formatTitleInternal(getCurrentPageTitle() || chrome.i18n.getMessage("OriginalTitle"), false, TitleFormatting.SentenceCase, true);
setOriginalTitle(originalTitle);

const newTitles = [{
Expand Down Expand Up @@ -346,7 +346,7 @@ export const SubmissionComponent = (props: SubmissionComponentProps) => {
props.submitClicked(selectedTitle ? {
...selectedTitle,
original: selectedTitle.title === getCurrentPageTitle()
|| (!!getCurrentPageTitle() && selectedTitle.title === await toSentenceCase(getCurrentPageTitle()!, false))
|| (!!getCurrentPageTitle() && selectedTitle.title === await formatTitleInternal(getCurrentPageTitle()!, false, TitleFormatting.SentenceCase, true))
} : null, selectedThumbnail.current, actAsVip).then((success) => {
if (!success) {
setCurrentlySubmitting(false);
Expand Down

0 comments on commit 6a3917d

Please sign in to comment.