🔧 chore: change isDesktopView to isTabletView

This commit is contained in:
Andre H 2024-03-07 11:45:51 +08:00
parent 226d02ea59
commit 028831f806
3 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,8 @@ const Id = () => {
const client = useGQLClient();
const location = useLocation();
const isDesktopView = useMediaQuery('(min-width: 720px)'); // md:
const buttonSize = isDesktopView ? {} : { size: 'sm' as const };
const isTabletView = useMediaQuery('(min-width: 720px)'); // md:
const buttonSize = isTabletView ? {} : { size: 'sm' as const };
const [project, setProject] = useState<ProjectType | null>(null);
const [repoUrl, setRepoUrl] = useState('');

View File

@ -20,8 +20,8 @@ import { useMediaQuery } from 'usehooks-ts';
const CreateWithTemplate = () => {
const { orgSlug } = useParams();
const isDesktopView = useMediaQuery('(min-width: 960px)'); // lg:
const stepsOrientation = isDesktopView ? 'vertical' : 'horizontal';
const isTabletView = useMediaQuery('(min-width: 960px)'); // lg:
const stepsOrientation = isTabletView ? 'vertical' : 'horizontal';
const stepperValues = [
{

View File

@ -29,8 +29,8 @@ const CreateRepo = () => {
const { orgSlug } = useParams();
const isDesktopView = useMediaQuery('(min-width: 720px)'); // md:
const buttonSize = isDesktopView ? { size: 'lg' as const } : {};
const isTabletView = useMediaQuery('(min-width: 720px)'); // md:
const buttonSize = isTabletView ? { size: 'lg' as const } : {};
const navigate = useNavigate();