Fix: - modified: app/(application)/(user)/event/[id]/publish.tsx - modified: app/(application)/(user)/event/create.tsx - modified: app/(application)/(user)/portofolio/[id]/create.tsx - modified: app/(application)/(user)/portofolio/[id]/edit.tsx - modified: app/(application)/admin/collaboration/[id]/group.tsx - modified: app/(application)/admin/collaboration/group.tsx - modified: app/(application)/admin/collaboration/publish.tsx - modified: app/(application)/admin/forum/[id]/list-report-comment.tsx - modified: app/(application)/admin/forum/[id]/list-report-posting.tsx - modified: app/(application)/admin/forum/posting.tsx - modified: app/(application)/admin/forum/report-comment.tsx - modified: app/(application)/admin/forum/report-posting.tsx - modified: app/(application)/admin/voting/[status]/status.tsx - modified: app/(application)/admin/voting/history.tsx - modified: components/Select/SelectCustom.tsx - modified: components/_ShareComponent/GridSpan_4_8.tsx - modified: screens/Authentication/LoginView.tsx - modified: screens/Collaboration/BoxPublishSection.tsx - modified: screens/Event/BoxDetailPublishSection.tsx - modified: screens/Home/topFeatureSection.tsx - modified: screens/Portofolio/ButtonCreatePortofolio.tsx Add: - components/_ShareComponent/GridSpan_NewComponent.tsx ### No Issue
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
import { Grid } from "@/components";
|
|
|
|
export const GridSpan_NewComponent = ({
|
|
text1,
|
|
text2,
|
|
text3,
|
|
text4,
|
|
span1,
|
|
span2,
|
|
}: {
|
|
text1: React.ReactNode;
|
|
text2: React.ReactNode;
|
|
text3?: React.ReactNode;
|
|
text4?: React.ReactNode;
|
|
span1?: number;
|
|
span2?: number;
|
|
}) => {
|
|
return (
|
|
<Grid>
|
|
<Grid.Col
|
|
span={span1 ? span1 : text4 ? 3 : 4}
|
|
style={{
|
|
justifyContent: "flex-start",
|
|
paddingRight: 5,
|
|
paddingLeft: 5,
|
|
}}
|
|
>
|
|
{text1}
|
|
</Grid.Col>
|
|
<Grid.Col
|
|
span={span2 ? span2 : text4 ? 3 : text3 ? 4 : 8}
|
|
style={{ justifyContent: "flex-start", paddingRight: 5 }}
|
|
>
|
|
{text2}
|
|
</Grid.Col>
|
|
{text3 && (
|
|
<Grid.Col
|
|
span={text4 ? 3 : 4}
|
|
style={{ justifyContent: "flex-start", paddingRight: 5 }}
|
|
>
|
|
{text3}
|
|
</Grid.Col>
|
|
)}
|
|
{text4 && (
|
|
<Grid.Col
|
|
span={3}
|
|
style={{ justifyContent: "flex-start", paddingRight: 5 }}
|
|
>
|
|
{text4}
|
|
</Grid.Col>
|
|
)}
|
|
</Grid>
|
|
);
|
|
};
|