🔧 chore: REMOVE framework for now

This commit is contained in:
Andre H 2024-03-01 14:07:12 +08:00
parent 8114b10932
commit be0ea904ee

View File

@ -9,13 +9,8 @@ import { useGQLClient } from '../../../../../context/GQLClientContext';
import { Template } from '../../../../../types'; import { Template } from '../../../../../types';
import { Heading } from 'components/shared/Heading'; import { Heading } from 'components/shared/Heading';
import { Input } from 'components/shared/Input'; import { Input } from 'components/shared/Input';
import { Radio } from 'components/shared/Radio';
import { Select, SelectOption } from 'components/shared/Select'; import { Select, SelectOption } from 'components/shared/Select';
import { import { ArrowRightCircleFilledIcon } from 'components/shared/CustomIcon';
ArrowRightCircleFilledIcon,
GitIcon,
GitTeaIcon,
} from 'components/shared/CustomIcon';
import { Checkbox } from 'components/shared/Checkbox'; import { Checkbox } from 'components/shared/Checkbox';
import { Button } from 'components/shared/Button'; import { Button } from 'components/shared/Button';
@ -38,19 +33,6 @@ const CreateRepo = () => {
const [gitAccounts, setGitAccounts] = useState<string[]>([]); const [gitAccounts, setGitAccounts] = useState<string[]>([]);
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const FRAMEWORK_OPTIONS = [
{
value: 'React',
label: 'React Native',
leftIcon: <GitIcon />,
},
{
value: 'Expo',
label: 'Expo',
leftIcon: <GitTeaIcon />,
},
];
const submitRepoHandler: SubmitHandler<SubmitRepoValues> = useCallback( const submitRepoHandler: SubmitHandler<SubmitRepoValues> = useCallback(
async (data) => { async (data) => {
assert(data.account); assert(data.account);
@ -140,22 +122,6 @@ const CreateRepo = () => {
The project will be cloned into this repository The project will be cloned into this repository
</Heading> </Heading>
</div> </div>
<div className="flex flex-col justify-start gap-3">
<span className="text-sm text-elements-high-em">Framework</span>
<Controller
name="framework"
control={control}
render={({ field: { value, onChange } }) => (
<Radio
variant="card"
options={FRAMEWORK_OPTIONS}
orientation="horizontal"
value={value}
onValueChange={onChange}
/>
)}
/>
</div>
<div className="flex flex-col justify-start gap-3"> <div className="flex flex-col justify-start gap-3">
<span className="text-sm text-elements-high-em">Git account</span> <span className="text-sm text-elements-high-em">Git account</span>
<Controller <Controller