Refactor code structure for improved readability and maintainability

This commit is contained in:
Fayzan Naufal Suparjo 2025-06-30 11:25:31 +07:00
parent 50720d18e9
commit f6d02c730c
5 changed files with 6 additions and 6 deletions

View file

@ -119,7 +119,7 @@ export default function LocationInfo({ location, query, idToken, refreshData }:
const url = window.URL.createObjectURL(new Blob([blob]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', `xcs-template-${locationName}.rbxmx`);
link.setAttribute('download', `wyre-template-${locationName}.rbxmx`);
document.body.appendChild(link);
link.click();
link.parentNode?.removeChild(link);

View file

@ -464,7 +464,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st
Settings
</NavLink>
<NavLink
href={'https://xcs-docs.restrafes.co/'}
href={'https://wyre.gitbook.io/wyre-docs'}
target={'_blank'}
pathname={pathname}
leftIcon={<AiFillInfoCircle />}
@ -472,7 +472,7 @@ export default function PlatformNav({ type, title }: { type?: string; title?: st
Help & Information
</NavLink>
<NavLink
href={'https://xcs-docs.restrafes.co/'}
href={'https://wyre.gitbook.io/wyre-docs'}
target={'_blank'}
pathname={pathname}
leftIcon={<BiSolidStoreAlt />}

View file

@ -46,7 +46,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
if (req.method === 'GET') {
// Prepare file
const filePath = path.join(process.cwd(), 'xcs-starter.rbxmx');
const filePath = path.join(process.cwd(), 'wyre-starter.rbxmx');
let buffer = fs.readFileSync(filePath);
// Check if API Key already exists for this location that hasn't been used yet

View file

@ -392,14 +392,14 @@ export default function PlatformOrganizations() {
leftIcon={<MdOutlineAddCircle />}
onClick={onCreateOrganizationModalOpen}
>
New
New Organization
</Button>
<Button
variant={'solid'}
leftIcon={<MdOutlineJoinRight />}
onClick={onJoinOrganizationModalOpen}
>
Join
Join Organization
</Button>
<Button
variant={'solid'}