forked from cerc-io/snowballtools-base
🔧 chore: change isDesktopView to isTabletView
This commit is contained in:
parent
226d02ea59
commit
028831f806
@ -24,8 +24,8 @@ const Id = () => {
|
|||||||
const client = useGQLClient();
|
const client = useGQLClient();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const isDesktopView = useMediaQuery('(min-width: 720px)'); // md:
|
const isTabletView = useMediaQuery('(min-width: 720px)'); // md:
|
||||||
const buttonSize = isDesktopView ? {} : { size: 'sm' as const };
|
const buttonSize = isTabletView ? {} : { size: 'sm' as const };
|
||||||
|
|
||||||
const [project, setProject] = useState<ProjectType | null>(null);
|
const [project, setProject] = useState<ProjectType | null>(null);
|
||||||
const [repoUrl, setRepoUrl] = useState('');
|
const [repoUrl, setRepoUrl] = useState('');
|
||||||
|
@ -20,8 +20,8 @@ import { useMediaQuery } from 'usehooks-ts';
|
|||||||
const CreateWithTemplate = () => {
|
const CreateWithTemplate = () => {
|
||||||
const { orgSlug } = useParams();
|
const { orgSlug } = useParams();
|
||||||
|
|
||||||
const isDesktopView = useMediaQuery('(min-width: 960px)'); // lg:
|
const isTabletView = useMediaQuery('(min-width: 960px)'); // lg:
|
||||||
const stepsOrientation = isDesktopView ? 'vertical' : 'horizontal';
|
const stepsOrientation = isTabletView ? 'vertical' : 'horizontal';
|
||||||
|
|
||||||
const stepperValues = [
|
const stepperValues = [
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,8 @@ const CreateRepo = () => {
|
|||||||
|
|
||||||
const { orgSlug } = useParams();
|
const { orgSlug } = useParams();
|
||||||
|
|
||||||
const isDesktopView = useMediaQuery('(min-width: 720px)'); // md:
|
const isTabletView = useMediaQuery('(min-width: 720px)'); // md:
|
||||||
const buttonSize = isDesktopView ? { size: 'lg' as const } : {};
|
const buttonSize = isTabletView ? { size: 'lg' as const } : {};
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user