Skip to content

Commit

Permalink
fix courier page text align on screens under xl (refinedev#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
umutzd authored Aug 19, 2021
1 parent dcd343b commit 200b67f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/fineFoods/src/pages/couriers/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
useShow,
Row,
Col,
Grid,
useNavigation,
Typography,
Rate,
Expand All @@ -20,7 +21,10 @@ import {

import { ICourier, IOrder, IOrderFilterVariables } from "interfaces";

const { useBreakpoint } = Grid;

export const CourierShow: React.FC<IResourceComponentsProps> = () => {
const { xl } = useBreakpoint();
const { queryResult: courierQueryResult } = useShow<ICourier>();
const courier = courierQueryResult.data?.data;

Expand Down Expand Up @@ -72,8 +76,7 @@ export const CourierShow: React.FC<IResourceComponentsProps> = () => {
direction="vertical"
style={{
width: "100%",
fontSize: 11,
marginTop: "10em",
textAlign: xl ? "unset" : "center",
}}
>
<Typography.Text>
Expand Down

0 comments on commit 200b67f

Please sign in to comment.