Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
14 lines
547 B
TypeScript
14 lines
547 B
TypeScript
import React from 'react';
|
|
import { Redirect, useLocalSearchParams } from 'expo-router';
|
|
|
|
/**
|
|
* Consolidated: the post composer lives in a single place at
|
|
* /(modals)/create-post. This route is kept as a stable alias and forwards any
|
|
* `mode` query param (e.g. mode=repo) so older links keep working.
|
|
*/
|
|
export default function CreatePostRedirect() {
|
|
const { mode } = useLocalSearchParams<{ mode?: string }>();
|
|
const href = mode ? `/(modals)/create-post?mode=${mode}` : '/(modals)/create-post';
|
|
return <Redirect href={href as any} />;
|
|
}
|